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

Skip to content

Commit daa51ca

Browse files
committed
Merge pull request matplotlib#4226 from lebigot/patch-1
MNT : fewer variables, slightly faster code in fignum_exist
2 parents a2fd30d + 8be0f18 commit daa51ca

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/matplotlib/pyplot.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,8 +461,7 @@ def gcf():
461461
return figure()
462462

463463
def fignum_exists(num):
464-
allLabels = get_figlabels()
465-
return _pylab_helpers.Gcf.has_fignum(num) or num in allLabels
464+
return _pylab_helpers.Gcf.has_fignum(num) or num in get_figlabels()
466465

467466

468467
def get_fignums():

0 commit comments

Comments
 (0)