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

Method reset

lib/matplotlib/widgets.py:376–379  ·  view source on GitHub ↗

Reset the slider to the initial value.

(self)

Source from the content-addressed store, hash-verified

374 self._observers.disconnect(cid)
375
376 def reset(self):
377 """Reset the slider to the initial value."""
378 if np.any(self.val != self.valinit):
379 self.set_val(self.valinit)
380
381
382class Slider(SliderBase):

Callers 6

clearMethod · 0.45
_on_resetMethod · 0.45
test_slider_resetFunction · 0.45
test_range_sliderFunction · 0.45
resetFunction · 0.45
resetFunction · 0.45

Calls 1

set_valMethod · 0.45

Tested by 2

test_slider_resetFunction · 0.36
test_range_sliderFunction · 0.36