8000 FIX: review comments · matplotlib/matplotlib@08cde82 · GitHub
[go: up one dir, main page]

Skip to content

Commit 08cde82

Browse files
committed
FIX: review comments
1 parent eda37a3 commit 08cde82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/figure.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,12 +1121,12 @@ def legend(self, *args, **kwargs):
11211121
# handle outside legends:
11221122
if isinstance(loc, str):
11231123
if loc.split()[0] == 'outside':
1124-
loc = loc.replace('outside ', '')
1124+
loc = loc.split(' ', 1)[1:]
11251125
outside = loc.replace('center ', '')
11261126
outside = outside.split()[0]
11271127
locs = loc.split()
11281128
if len(locs) > 1 and locs[0] in ('right', 'left'):
1129-
# locs doesn't accept "left upper", etc, so swap
1129+
# loc doesn't accept "left upper", etc, so swap
11301130
if locs[0] != 'center':
11311131
locs = locs[::-1]
11321132
loc = locs[0] + ' ' + locs[1]

0 commit comments

Comments
 (0)
0