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

Method get_navigate_mode

lib/matplotlib/axes/_base.py:4323–4333  ·  view source on GitHub ↗

Get the navigation toolbar button status: 'PAN', 'ZOOM', or None.

(self)

Source from the content-addressed store, hash-verified

4321 self._navigate = b
4322
4323 def get_navigate_mode(self):
4324 """
4325 Get the navigation toolbar button status: 'PAN', 'ZOOM', or None.
4326 """
4327 toolbar = self.figure.canvas.toolbar
4328 if toolbar:
4329 return None if toolbar.mode.name == "NONE" else toolbar.mode.name
4330 manager = self.figure.canvas.manager
4331 if manager and manager.toolmanager:
4332 mode = manager.toolmanager.active_toggle.get("default")
4333 return None if mode is None else mode.upper()
4334
4335 @_api.deprecated("3.11")
4336 def set_navigate_mode(self, b):

Callers 5

_button_releaseMethod · 0.80
_on_moveMethod · 0.80
test_interactive_zoomFunction · 0.80
test_widgetlock_zoompanFunction · 0.80
test_toolbar_zoompanFunction · 0.80

Calls 1

getMethod · 0.45

Tested by 3

test_interactive_zoomFunction · 0.64
test_widgetlock_zoompanFunction · 0.64
test_toolbar_zoompanFunction · 0.64