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

Method push_current

lib/matplotlib/backend_bases.py:3352–3361  ·  view source on GitHub ↗

Push the current view limits and position onto the stack.

(self)

Source from the content-addressed store, hash-verified

3350 self._zoom_info = None
3351
3352 def push_current(self):
3353 """Push the current view limits and position onto the stack."""
3354 self._nav_stack.push(
3355 WeakKeyDictionary(
3356 {ax: (ax._get_view(),
3357 # Store both the original and modified positions.
3358 (ax.get_position(True).frozen(),
3359 ax.get_position().frozen()))
3360 for ax in self.canvas.figure.axes}))
3361 self.set_history_buttons()
3362
3363 def _update_view(self):
3364 """

Callers 4

release_panMethod · 0.95
release_zoomMethod · 0.95
scroll_handlerFunction · 0.45

Calls 5

set_history_buttonsMethod · 0.95
pushMethod · 0.45
_get_viewMethod · 0.45
frozenMethod · 0.45
get_positionMethod · 0.45

Tested by

no test coverage detected