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

Method push_current

lib/matplotlib/backend_tools.py:523–535  ·  view source on GitHub ↗

Push the current view limits and position onto their respective stacks.

(self, figure=None)

Source from the content-addressed store, hash-verified

521 self.figure.canvas.draw_idle()
522
523 def push_current(self, figure=None):
524 """
525 Push the current view limits and position onto their respective stacks.
526 """
527 if not figure:
528 figure = self.figure
529 views = WeakKeyDictionary()
530 pos = WeakKeyDictionary()
531 for a in figure.get_axes():
532 views[a] = a._get_view()
533 pos[a] = self._axes_pos(a)
534 self.views[figure].push(views)
535 self.positions[figure].push(pos)
536
537 def _axes_pos(self, ax):
538 """

Callers 7

add_figureMethod · 0.95
_button_pressMethod · 0.45
_button_releaseMethod · 0.45
scroll_zoomMethod · 0.45
_releaseMethod · 0.45
_releaseMethod · 0.45
apply_callbackFunction · 0.45

Calls 3

_axes_posMethod · 0.95
_get_viewMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected