8000 FIX · matplotlib/matplotlib@89fa0e0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 89fa0e0

Browse files
committed
FIX
1 parent e3f5660 commit 89fa0e0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/matplotlib/figure.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1388,7 +1388,7 @@ def add_subplot(self, *args, **kwargs):
13881388
if not isinstance(arg, Integral):
13891389
cbook.warn_deprecated("3.3", message=message)
13901390
newarg[nn] = int(arg)
1391-
1391+
args2 = args[2]
13921392
if isinstance(args[2], tuple) and len(args[2]) == 2:
13931393
# start/stop two-tuple is allowed...
13941394
for arg in args[2]:
@@ -1400,7 +1400,6 @@ def add_subplot(self, *args, **kwargs):
14001400
cbook.warn_deprecated("3.3", message=message)
14011401
newarg[2] = int(args[2])
14021402
args = tuple(newarg)
1403-
print('done', args)
14041403
else:
14051404
raise TypeError(f'add_subplot() takes 1 or 3 positional arguments '
14061405
f'but {nargs} were given')

0 commit comments

Comments
 (0)
0