Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1144e8c

Browse filesBrowse files
authored
Merge pull request #8666 from anntzer/document-legend-right
Document 'right' legend position as alias for 'center right'.
2 parents 718ac86 + 7a776f1 commit 1144e8c
Copy full SHA for 1144e8c

File tree

Expand file treeCollapse file tree

2 files changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+3
-3
lines changed

‎lib/matplotlib/legend.py

Copy file name to clipboardExpand all lines: lib/matplotlib/legend.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class Legend(Artist):
118118
'upper left' : 2,
119119
'lower left' : 3,
120120
'lower right' : 4,
121-
'right' : 5,
121+
'right' : 5, (same as 'center right', for back-compatibility)
122122
'center left' : 6,
123123
'center right' : 7,
124124
'lower center' : 8,

‎lib/matplotlib/offsetbox.py

Copy file name to clipboardExpand all lines: lib/matplotlib/offsetbox.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,13 +1007,13 @@ def __init__(self, loc,
10071007
**kwargs):
10081008
"""
10091009
loc is a string or an integer specifying the legend location.
1010-
The valid location codes are::
1010+
The valid location codes are::
10111011
10121012
'upper right' : 1,
10131013
'upper left' : 2,
10141014
'lower left' : 3,
10151015
'lower right' : 4,
1016-
'right' : 5,
1016+
'right' : 5, (same as 'center right', for back-compatibility)
10171017
'center left' : 6,
10181018
'center right' : 7,
10191019
'lower center' : 8,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.