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

Method destroy_fig

lib/matplotlib/_pylab_helpers.py:71–76  ·  view source on GitHub ↗

Destroy figure *fig*.

(cls, fig)

Source from the content-addressed store, hash-verified

69
70 @classmethod
71 def destroy_fig(cls, fig):
72 """Destroy figure *fig*."""
73 manager = next((manager for manager in cls.figs.values()
74 if manager.canvas.figure == fig), None)
75 if manager is not None:
76 cls.destroy(manager)
77
78 @classmethod
79 def destroy_all(cls):

Callers 3

triggerMethod · 0.80
closeFunction · 0.80
key_press_handlerFunction · 0.80

Calls 2

valuesMethod · 0.80
destroyMethod · 0.45

Tested by

no test coverage detected