From 9c49a296950c4c54f6b5cbf5f5b97feca9c9d536 Mon Sep 17 00:00:00 2001 From: Shriya M <25shriya@gmail.com> Date: Mon, 10 Jun 2024 20:02:33 +0100 Subject: [PATCH] Formatted Documentation --- src/sage/plot/graphics.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/sage/plot/graphics.py b/src/sage/plot/graphics.py index b247dd47fb3..0d96d3d6150 100644 --- a/src/sage/plot/graphics.py +++ b/src/sage/plot/graphics.py @@ -431,13 +431,14 @@ def set_legend_options(self, **kwds): sage: p.set_legend_options(loc=(0.5,0.5)); p # aligns the bottom of the box to the center # needs sage.symbolic Graphics object consisting of 1 graphics primitive - The parameters ``loc`` and ``borderaxespad`` can be altered in order to place the legend below the x-axis label or to the left of the y-axis label. - The following example sets ``loc=3`` and ``borderaxespad = -7.5-0.01*p.fontsize()`` so as to obtain the legend below the x-axis label:: + The parameters ``loc`` and ``borderaxespad`` can be altered + in order to place the legend below the x-axis label or to + the left of the y-axis label:: sage: p = line([(0, 0), (1, 1)], legend_label='test') - sage: p.axes_labels(['X-Label', 'Y-Label']) # adding labels for axes + sage: p.axes_labels(['X-Label', 'Y-Label']) # adding labels for axes sage: p.set_legend_options(loc=8, borderaxespad=-7.5-0.01*p.fontsize()) - sage: print(p) + sage: p Graphics object consisting of 1 graphics primitive """ if len(kwds) == 0: