Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Closed
Labels
Milestone
Description
Documentation Link
Problem
Animate decay claims it shows how tochanging axes limits during an animation
in the run method
defrun(data):# update the datat,y=dataxdata.append(t)ydata.append(y)xmin,xmax=ax.get_xlim()ift>=xmax:ax.set_xlim(xmin,2*xmax)ax.figure.canvas.draw()line.set_data(xdata,ydata)
but the limits aren't actually changing:
91679bc3-c559-48dd-8c6e-9f7e9a8157bd.mp4
Suggested improvement
Either option is fine with me:
- fix code so xlims dynamically updated
- remove lim updating code and statement saying this example shows how to update limits