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 daa51ca

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

File tree

Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed

‎lib/matplotlib/pyplot.py

Copy file name to clipboardExpand all lines: lib/matplotlib/pyplot.py
+1-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.