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

Method grab_mouse

lib/matplotlib/backend_bases.py:1925–1934  ·  view source on GitHub ↗

Set the child `~.axes.Axes` which is grabbing the mouse events. Usually called by the widgets themselves. It is an error to call this if the mouse is already grabbed by another Axes.

(self, ax)

Source from the content-addressed store, hash-verified

1923 return axes
1924
1925 def grab_mouse(self, ax):
1926 """
1927 Set the child `~.axes.Axes` which is grabbing the mouse events.
1928
1929 Usually called by the widgets themselves. It is an error to call this
1930 if the mouse is already grabbed by another Axes.
1931 """
1932 if self.mouse_grabber not in (None, ax):
1933 raise RuntimeError("Another Axes already grabs mouse input")
1934 self.mouse_grabber = ax
1935
1936 def release_mouse(self, ax):
1937 """

Callers 5

_clickMethod · 0.80
_updateMethod · 0.80
_updateMethod · 0.80
_clickMethod · 0.80
test_grab_clearFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_grab_clearFunction · 0.64