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

Method _update_view

lib/matplotlib/backend_bases.py:3363–3379  ·  view source on GitHub ↗

Update the viewlim and position from the view and position stack for each Axes.

(self)

Source from the content-addressed store, hash-verified

3361 self.set_history_buttons()
3362
3363 def _update_view(self):
3364 """
3365 Update the viewlim and position from the view and position stack for
3366 each Axes.
3367 """
3368 nav_info = self._nav_stack()
3369 if nav_info is None:
3370 return
3371 # Retrieve all items at once to avoid any risk of GC deleting an Axes
3372 # while in the middle of the loop below.
3373 items = list(nav_info.items())
3374 for ax, (view, (pos_orig, pos_active)) in items:
3375 ax._set_view(view)
3376 # Restore both the original and modified positions
3377 ax._set_position(pos_orig, 'original')
3378 ax._set_position(pos_active, 'active')
3379 self.canvas.draw_idle()
3380
3381 def configure_subplots(self, *args):
3382 if hasattr(self, "subplot_tool"):

Callers 3

homeMethod · 0.95
backMethod · 0.95
forwardMethod · 0.95

Calls 3

_set_positionMethod · 0.80
_set_viewMethod · 0.45
draw_idleMethod · 0.45

Tested by

no test coverage detected