Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca42eaa commit 4d45160Copy full SHA for 4d45160
1 file changed
lib/matplotlib/pyplot.py
@@ -14,7 +14,7 @@
14
15
"""
16
17
-import sys
+import sys, warnings
18
19
import matplotlib
20
from matplotlib import _pylab_helpers, interactive
@@ -266,6 +266,8 @@ class that will be passed on to :meth:`new_figure_manager` in the
266
figLabel = num
267
allLabels = get_figlabels()
268
if figLabel not in allLabels:
269
+ if figLabel == 'all':
270
+ warnings.warn("close('all') closes all existing figures")
271
if len(allLabels):
272
num = max(allnums) + 1
273
else:
0 commit comments