Closed
Description
Documentation Link
Problem
Animate decay claims it shows how to changing axes limits during an animation
in the run method
def run(data):
# update the data
t, y = data
xdata.append(t)
ydata.append(y)
xmin, xmax = ax.get_xlim()
if t >= 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