Skip to content

Commit f0ccf7e

Browse files
authored
Merge pull request #8602 from musoke/doc-legend-markerfirst
DOC: State default for legend's `markerfirst`
2 parents 141368f + fef2b61 commit f0ccf7e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

lib/matplotlib/axes/_axes.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -403,9 +403,10 @@ def legend(self, *args, **kwargs):
403403
the ``legend.markerscale`` :data:`rcParam <matplotlib.rcParams>`.
404404
405405
markerfirst : bool
406-
if *True*, legend marker is placed to the left of the legend label
407-
if *False*, legend marker is placed to the right of the legend
408-
label
406+
If *True*, legend marker is placed to the left of the legend label.
407+
If *False*, legend marker is placed to the right of the legend
408+
label.
409+
Default is *True*.
409410
410411
frameon : None or bool
411412
Control whether the legend should be drawn on a patch (frame).

lib/matplotlib/figure.py

+1
Original file line numberDiff line numberDiff line change
@@ -1329,6 +1329,7 @@ def legend(self, *args, **kwargs):
13291329
If *True*, legend marker is placed to the left of the legend label.
13301330
If *False*, legend marker is placed to the right of the legend
13311331
label.
1332+
Default is *True*.
13321333
13331334
frameon : None or bool
13341335
Control whether the legend should be drawn on a patch (frame).

0 commit comments

Comments
 (0)