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

Skip to content

Commit 59c894c

Browse files
authored
Merge pull request #6618 from anntzer/legend-docstring
Small improvements to legend's docstring.
2 parents 6f1c68e + 574c60b commit 59c894c

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
@@ -357,7 +357,7 @@ def legend(self, *args, **kwargs):
357357
``bbox_to_anchor`` will be ignored).
358358
359359
bbox_to_anchor : :class:`matplotlib.transforms.BboxBase` instance \
360-
or tuple of floats
360+
or tuple of floats
361361
Specify any arbitrary location for the legend in `bbox_transform`
362362
coordinates (default Axes coordinates).
363363
@@ -373,8 +373,8 @@ def legend(self, *args, **kwargs):
373373
The font properties of the legend. If None (default), the current
374374
:data:`matplotlib.rcParams` will be used.
375375
376-
fontsize : int or float or {'xx-small', 'x-small', 'small', 'medium',\
377-
'large', 'x-large', 'xx-large'}
376+
fontsize : int or float or {'xx-small', 'x-small', 'small', 'medium', \
377+
'large', 'x-large', 'xx-large'}
378378
Controls the font size of the legend. If the value is numeric the
379379
size will be the absolute font size in points. String values are
380380
relative to the current default font size. This argument is only
@@ -404,7 +404,7 @@ def legend(self, *args, **kwargs):
404404
drawn ones. Default is ``None`` which will take the value from
405405
the ``legend.markerscale`` :data:`rcParam <matplotlib.rcParams>`.
406406
407-
*markerfirst*: [ *True* | *False* ]
407+
markerfirst : bool
408408
if *True*, legend marker is placed to the left of the legend label
409409
if *False*, legend marker is placed to the right of the legend
410410
label

0 commit comments

Comments
 (0)