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

Function hover

galleries/examples/widgets/mouse_cursor.py:26–32  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

24
25
26def hover(event):
27 if fig.canvas.widgetlock.locked():
28 # Don't do anything if the zoom/pan tools have been enabled.
29 return
30
31 fig.canvas.set_cursor(
32 event.inaxes.cursor_to_use if event.inaxes else Cursors.POINTER)
33
34
35fig.canvas.mpl_connect('motion_notify_event', hover)

Callers

nothing calls this directly

Calls 2

lockedMethod · 0.80
set_cursorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…