Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
63
def
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_ydata
Method · 0.80
f
Function · 0.70
draw_idle
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…