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

Method _set_span_cursor

lib/matplotlib/widgets.py:2867–2876  ·  view source on GitHub ↗

Update the canvas cursor based on direction of the selector.

(self, *, enabled)

Source from the content-addressed store, hash-verified

2865 return ()
2866
2867 def _set_span_cursor(self, *, enabled):
2868 """Update the canvas cursor based on direction of the selector."""
2869 if enabled:
2870 cursor = (backend_tools.Cursors.RESIZE_HORIZONTAL
2871 if self.direction == 'horizontal' else
2872 backend_tools.Cursors.RESIZE_VERTICAL)
2873 else:
2874 cursor = backend_tools.Cursors.POINTER
2875
2876 self._set_cursor(cursor)
2877
2878 def connect_default_events(self):
2879 # docstring inherited

Callers 3

_pressMethod · 0.95
_releaseMethod · 0.95
_hoverMethod · 0.95

Calls 1

_set_cursorMethod · 0.80

Tested by

no test coverage detected