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

Method update_home_views

lib/matplotlib/backend_tools.py:555–565  ·  view source on GitHub ↗

Make sure that ``self.home_views`` has an entry for all Axes present in the figure.

(self, figure=None)

Source from the content-addressed store, hash-verified

553 ax.get_position().frozen())
554
555 def update_home_views(self, figure=None):
556 """
557 Make sure that ``self.home_views`` has an entry for all Axes present
558 in the figure.
559 """
560
561 if not figure:
562 figure = self.figure
563 for a in figure.get_axes():
564 if a not in self.home_views[figure]:
565 self.home_views[figure][a] = a._get_view()
566
567 def home(self):
568 """Recall the first view and position from the stack."""

Callers 2

add_figureMethod · 0.95
clearMethod · 0.95

Calls 1

_get_viewMethod · 0.45

Tested by

no test coverage detected