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

Function test_slider_reset

lib/matplotlib/tests/test_widgets.py:1330–1335  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1328
1329
1330def test_slider_reset():
1331 fig, ax = plt.subplots()
1332 slider = widgets.Slider(ax=ax, label='', valmin=0, valmax=1, valinit=.5)
1333 slider.set_val(0.75)
1334 slider.reset()
1335 assert slider.val == 0.5
1336
1337
1338@pytest.mark.parametrize("orientation", ["horizontal", "vertical"])

Callers

nothing calls this directly

Calls 3

set_valMethod · 0.95
subplotsMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…