Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 77aec67

Browse files
committed
FIX: fix the positional arguments
1 parent 020acb6 commit 77aec67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/figure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1113,12 +1113,12 @@ def legend(self, *args, **kwargs):
11131113
# extra_args = extra_args[1:]
11141114
pass
11151115
transform = kwargs.pop('bbox_transform', self.transSubfigure)
1116+
outside = None
11161117
if 'loc' in kwargs:
11171118
# need to protect this in case loc was passed in
11181119
# positionally...
11191120
loc = kwargs.pop('loc', None)
11201121
# handle outside legends:
1121-
outside = None
11221122
if isinstance(loc, str):
11231123
if loc.split()[0] == 'outside':
11241124
loc = loc.replace('outside ', '')

0 commit comments

Comments
 (0)