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

Function test_tool_line_handle

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

Source from the content-addressed store, hash-verified

847
848
849def test_tool_line_handle(ax):
850 positions = [20, 30, 50]
851 tool_line_handle = widgets.ToolLineHandles(ax, positions, 'horizontal',
852 useblit=False)
853
854 for artist in tool_line_handle.artists:
855 assert not artist.get_animated()
856 assert not artist.get_visible()
857
858 tool_line_handle.set_visible(True)
859 tool_line_handle.set_animated(True)
860
861 for artist in tool_line_handle.artists:
862 assert artist.get_animated()
863 assert artist.get_visible()
864
865 assert tool_line_handle.positions == positions
866
867
868@pytest.mark.parametrize('direction', ("horizontal", "vertical"))

Callers

nothing calls this directly

Calls 4

set_visibleMethod · 0.95
set_animatedMethod · 0.95
get_animatedMethod · 0.80
get_visibleMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…