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

Function update

galleries/examples/widgets/slider_demo.py:63–65  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

61
62# The function to be called anytime a slider's value changes
63def update(val):
64 line.set_ydata(f(t, amp_slider.val, freq_slider.val))
65 fig.canvas.draw_idle()
66
67
68# register the update function with each slider

Callers

nothing calls this directly

Calls 3

set_ydataMethod · 0.80
fFunction · 0.70
draw_idleMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…