From fef2b61af23b71e04570f29d3de8dd23b8826f33 Mon Sep 17 00:00:00 2001 From: Nathan Musoke Date: Thu, 11 May 2017 11:16:29 +1200 Subject: [PATCH] doc: State default for legend's `markerfirst` Also capitalize and add periods in one case. --- lib/matplotlib/axes/_axes.py | 7 ++++--- lib/matplotlib/figure.py | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/matplotlib/axes/_axes.py b/lib/matplotlib/axes/_axes.py index 6a46414aafc5..3a4bcf6e1d98 100644 --- a/lib/matplotlib/axes/_axes.py +++ b/lib/matplotlib/axes/_axes.py @@ -403,9 +403,10 @@ def legend(self, *args, **kwargs): the ``legend.markerscale`` :data:`rcParam `. markerfirst : bool - if *True*, legend marker is placed to the left of the legend label - if *False*, legend marker is placed to the right of the legend - label + If *True*, legend marker is placed to the left of the legend label. + If *False*, legend marker is placed to the right of the legend + label. + Default is *True*. frameon : None or bool Control whether the legend should be drawn on a patch (frame). diff --git a/lib/matplotlib/figure.py b/lib/matplotlib/figure.py index 7532fe5f8e09..77bf0f3c48a9 100644 --- a/lib/matplotlib/figure.py +++ b/lib/matplotlib/figure.py @@ -1329,6 +1329,7 @@ def legend(self, *args, **kwargs): If *True*, legend marker is placed to the left of the legend label. If *False*, legend marker is placed to the right of the legend label. + Default is *True*. frameon : None or bool Control whether the legend should be drawn on a patch (frame).