8000 Document 'right' legend position as alias for 'center right'. by anntzer · Pull Request #8666 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Document 'right' legend position as alias for 'center right'. #8666

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 26, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Document 'right' legend position as alias for 'center right'.
  • Loading branch information
anntzer committed May 26, 2017
commit 7a776f1b2386efba6d24883760e65f1f7d7a72cf
2 changes: 1 addition & 1 deletion lib/matplotlib/legend.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions lib/matplotlib/offsetbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
0