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.
2 parents 4f31d27 + 96d37e3 commit 13a8f31Copy full SHA for 13a8f31
lib/matplotlib/_pylab_helpers.py
@@ -84,6 +84,9 @@ def destroy_fig(cls, fig):
84
85
@classmethod
86
def destroy_all(cls):
87
+ # this is need to ensure that gc is available in corner cases
88
+ # where modules are being torn down after install with easy_install
89
+ import gc # nnqa
90
for manager in list(cls.figs.values()):
91
manager.canvas.mpl_disconnect(manager._cidgcf)
92
manager.destroy()
0 commit comments