Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f3ddb4e

Browse files
NelleVtacaswell
authored andcommitted
Merge pull request #6618 from anntzer/legend-docstring
Small improvements to legend's docstring.
1 parent a40cad4 commit f3ddb4e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ def legend(self, *args, **kwargs):
355355
``bbox_to_anchor`` will be ignored).
356356
357357
bbox_to_anchor : :class:`matplotlib.transforms.BboxBase` instance \
358-
or tuple of floats
358+
or tuple of floats
359359
Specify any arbitrary location for the legend in `bbox_transform`
360360
coordinates (default Axes coordinates).
361361
@@ -371,8 +371,8 @@ def legend(self, *args, **kwargs):
371371
The font properties of the legend. If None (default), the current
372372
:data:`matplotlib.rcParams` will be used.
373373
374-
fontsize : int or float or {'xx-small', 'x-small', 'small', 'medium',\
375-
'large', 'x-large', 'xx-large'}
374+
fontsize : int or float or {'xx-small', 'x-small', 'small', 'medium', \
375+
'large', 'x-large', 'xx-large'}
376376
Controls the font size of the legend. If the value is numeric the
377377
size will be the absolute font size in points. String values are
378378
relative to the current default font size. This argument is only
@@ -402,7 +402,7 @@ def legend(self, *args, **kwargs):
402402
drawn ones. Default is ``None`` which will take the value from
403403
the ``legend.markerscale`` :data:`rcParam <matplotlib.rcParams>`.
404404
405-
*markerfirst*: [ *True* | *False* ]
405+
markerfirst : bool
406406
if *True*, legend marker is placed to the left of the legend label
407407
if *False*, legend marker is placed to the right of the legend
408408
label

0 commit comments

Comments
 (0)