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

Function test_picking_does_not_stale

lib/matplotlib/tests/test_figure.py:971–981  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

969
970@mpl.style.context('mpl20')
971def test_picking_does_not_stale():
972 fig, ax = plt.subplots()
973 ax.scatter([0], [0], [1000], picker=True)
974 fig.canvas.draw()
975 assert not fig.stale
976
977 mouse_event = SimpleNamespace(x=ax.bbox.x0 + ax.bbox.width / 2,
978 y=ax.bbox.y0 + ax.bbox.height / 2,
979 inaxes=ax, guiEvent=None)
980 fig.pick(mouse_event)
981 assert not fig.stale
982
983
984def test_add_subplot_twotuple():

Callers

nothing calls this directly

Calls 4

subplotsMethod · 0.45
scatterMethod · 0.45
drawMethod · 0.45
pickMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…