From 7a776f1b2386efba6d24883760e65f1f7d7a72cf Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Thu, 25 May 2017 23:26:49 -0700 Subject: [PATCH] Document 'right' legend position as alias for 'center right'. --- lib/matplotlib/legend.py | 2 +- lib/matplotlib/offsetbox.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/matplotlib/legend.py b/lib/matplotlib/legend.py index 15c388fca6b3..2b99587e881c 100644 --- a/lib/matplotlib/legend.py +++ b/lib/matplotlib/legend.py @@ -118,7 +118,7 @@ class Legend(Artist): 'upper left' : 2, 'lower left' : 3, 'lower right' : 4, - 'right' : 5, + 'right' : 5, (same as 'center right', for back-compatibility) 'center left' : 6, 'center right' : 7, 'lower center' : 8, diff --git a/lib/matplotlib/offsetbox.py b/lib/matplotlib/offsetbox.py index 4fb1db744270..d5f2a027b4de 100644 --- a/lib/matplotlib/offsetbox.py +++ b/lib/matplotlib/offsetbox.py @@ -1007,13 +1007,13 @@ def __init__(self, loc, **kwargs): """ loc is a string or an integer specifying the legend location. - The valid location codes are:: + The valid location codes are:: 'upper right' : 1, 'upper left' : 2, 'lower left' : 3, 'lower right' : 4, - 'right' : 5, + 'right' : 5, (same as 'center right', for back-compatibility) 'center left' : 6, 'center right' : 7, 'lower center' : 8,