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

Function test_grab_clear

lib/matplotlib/tests/test_backend_bases.py:101–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99
100
101def test_grab_clear():
102 fig, ax = plt.subplots()
103
104 fig.canvas.grab_mouse(ax)
105 assert fig.canvas.mouse_grabber == ax
106
107 fig.clear()
108 assert fig.canvas.mouse_grabber is None
109
110
111@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 3

grab_mouseMethod · 0.80
subplotsMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…