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

Function test_lasso_selector

lib/matplotlib/tests/test_widgets.py:1000–1008  ·  view source on GitHub ↗
(ax, kwargs)

Source from the content-addressed store, hash-verified

998 dict(useblit=True, button=1),
999])
1000def test_lasso_selector(ax, kwargs):
1001 onselect = mock.Mock(spec=noop, return_value=None)
1002
1003 tool = widgets.LassoSelector(ax, onselect=onselect, **kwargs)
1004 MouseEvent._from_ax_coords("button_press_event", ax, (100, 100), 1)._process()
1005 MouseEvent._from_ax_coords("motion_notify_event", ax, (125, 125), 1)._process()
1006 MouseEvent._from_ax_coords("button_release_event", ax, (150, 150), 1)._process()
1007
1008 onselect.assert_called_once_with([(100, 100), (125, 125), (150, 150)])
1009
1010
1011def test_lasso_selector_set_props(ax):

Callers

nothing calls this directly

Calls 2

_processMethod · 0.80
_from_ax_coordsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…