MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / destroy_all

Method destroy_all

lib/matplotlib/_pylab_helpers.py:79–84  ·  view source on GitHub ↗

Destroy all figures.

(cls)

Source from the content-addressed store, hash-verified

77
78 @classmethod
79 def destroy_all(cls):
80 """Destroy all figures."""
81 for manager in list(cls.figs.values()):
82 manager.canvas.mpl_disconnect(manager._cidgcf)
83 manager.destroy()
84 cls.figs.clear()
85
86 @classmethod
87 def has_fignum(cls, num):

Callers 3

triggerMethod · 0.80
closeFunction · 0.80
key_press_handlerFunction · 0.80

Calls 4

valuesMethod · 0.80
mpl_disconnectMethod · 0.80
destroyMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected