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

Method clear

lib/matplotlib/figure.py:3253–3260  ·  view source on GitHub ↗
(self, keep_observers=False)

Source from the content-addressed store, hash-verified

3251 self.set_size_inches(self.get_figwidth(), val, forward=forward)
3252
3253 def clear(self, keep_observers=False):
3254 # docstring inherited
3255 super().clear(keep_observers=keep_observers)
3256 # FigureBase.clear does not clear toolbars, as
3257 # only Figure can have toolbars
3258 toolbar = self.canvas.toolbar
3259 if toolbar is not None:
3260 toolbar.update()
3261
3262 @_finalize_rasterization
3263 @allow_rasterization

Callers 5

__init__Method · 0.95
clearMethod · 0.45
_set_dpiMethod · 0.45
__setstate__Method · 0.45

Calls 1

updateMethod · 0.45

Tested by 1