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

Skip to content

Commit 574c60b

Browse files
committed
Small improvements to legend's docstring.
The source looks a bit weirder, but the output of `pydoc pylab.legend` (or `plt.legend?` in IPython) is much nicer. I don't think numpydoc allows splitting the argument type information into two lines.
1 parent 1214b21 commit 574c60b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib/matplotlib/axes/_axes.py

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

0 commit comments

Comments
 (0)