From 3ee83539f0a962a10f42e41c13f2d922c9ce9584 Mon Sep 17 00:00:00 2001 From: joelostblom Date: Tue, 26 Jun 2018 19:16:49 -0400 Subject: [PATCH 1/2] Update legend loc default value in docstring --- lib/matplotlib/legend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/legend.py b/lib/matplotlib/legend.py index 25a57a5e6e98..f9c104fd9b35 100644 --- a/lib/matplotlib/legend.py +++ b/lib/matplotlib/legend.py @@ -111,7 +111,7 @@ def _update_bbox_to_anchor(self, loc_in_canvas): _legend_kw_doc = ''' -loc : int or string or pair of floats, default: 'upper right' +loc : int or string or pair of floats, default: :rc:`legend.loc` The location of the legend. Possible codes are: =============== ============= From 40c9fdd59cb6518cf0353845d1c89572924e2a74 Mon Sep 17 00:00:00 2001 From: joelostblom Date: Wed, 27 Jun 2018 09:40:34 -0400 Subject: [PATCH 2/2] State default rcParam values --- lib/matplotlib/legend.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/matplotlib/legend.py b/lib/matplotlib/legend.py index f9c104fd9b35..6821d39566cc 100644 --- a/lib/matplotlib/legend.py +++ b/lib/matplotlib/legend.py @@ -111,7 +111,8 @@ def _update_bbox_to_anchor(self, loc_in_canvas): _legend_kw_doc = ''' -loc : int or string or pair of floats, default: :rc:`legend.loc` +loc : int or string or pair of floats, default: :rc:`legend.loc` ('best' for \ +axes, 'upper right' for figures) The location of the legend. Possible codes are: =============== =============