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

Function test_span_selector_add_state

lib/matplotlib/tests/test_widgets.py:835–846  ·  view source on GitHub ↗
(ax)

Source from the content-addressed store, hash-verified

833
834
835def test_span_selector_add_state(ax):
836 tool = widgets.SpanSelector(ax, noop, 'horizontal',
837 interactive=True)
838
839 with pytest.raises(ValueError):
840 tool.add_state('unsupported_state')
841 with pytest.raises(ValueError):
842 tool.add_state('center')
843 with pytest.raises(ValueError):
844 tool.add_state('square')
845
846 tool.add_state('move')
847
848
849def test_tool_line_handle(ax):

Callers

nothing calls this directly

Calls 1

add_stateMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…