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

Method clear

lib/matplotlib/backend_tools.py:484–490  ·  view source on GitHub ↗

Reset the Axes stack.

(self, figure)

Source from the content-addressed store, hash-verified

482 figure.add_axobserver(lambda fig: self.update_home_views(fig))
483
484 def clear(self, figure):
485 """Reset the Axes stack."""
486 if figure in self.views:
487 self.views[figure].clear()
488 self.positions[figure].clear()
489 self.home_views[figure].clear()
490 self.update_home_views()
491
492 def update_view(self):
493 """

Callers

nothing calls this directly

Calls 1

update_home_viewsMethod · 0.95

Tested by

no test coverage detected