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 bc31177 commit c718eaeCopy full SHA for c718eae
lib/matplotlib/_pylab_helpers.py
@@ -53,6 +53,8 @@ def destroy(cls, num):
53
two managers share the same number.
54
"""
55
if all(hasattr(num, attr) for attr in ["num", "destroy"]):
56
+ # num is a manager-like instance (not necessarily a
57
+ # FigureManagerBase subclass)
58
manager = num
59
if cls.figs.get(manager.num) is manager:
60
cls.figs.pop(manager.num)
0 commit comments