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

Method __init__

lib/matplotlib/backend_tools.py:639–648  ·  view source on GitHub ↗
(self, *args)

Source from the content-addressed store, hash-verified

637class ZoomPanBase(ToolToggleBase):
638 """Base class for `ToolZoom` and `ToolPan`."""
639 def __init__(self, *args):
640 super().__init__(*args)
641 self._button_pressed = None
642 self._xypress = None
643 self._idPress = None
644 self._idRelease = None
645 self._idScroll = None
646 self.base_scale = 2.
647 self.scrollthresh = .5 # .5 second scroll threshold
648 self.lastscroll = time.time()-self.scrollthresh
649
650 def enable(self, event=None):
651 """Connect press/release events and lock the canvas."""

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected