8000 Merge pull request #24310 from story645/animate-decay · matplotlib/matplotlib@268c24d · GitHub
[go: up one dir, main page]

Skip to content

Commit 268c24d

Browse files
authored
Merge pull request #24310 from story645/animate-decay
show axes changing in animate decay example
2 parents e71827a + 8112d55 commit 268c24d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/animation/animate_decay.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def data_gen():
2424

2525
def init():
2626
ax.set_ylim(-1.1, 1.1)
27-
ax.set_xlim(0, 10)
27+
ax.set_xlim(0, 1)
2828
del xdata[:]
2929
del ydata[:]
3030
line.set_data(xdata, ydata)
@@ -50,5 +50,5 @@ def run(data):
5050

5151
return line,
5252

53-
ani = animation.FuncAnimation(fig, run, data_gen, interval=10, init_func=init)
53+
ani = animation.FuncAnimation(fig, run, data_gen, interval=100, init_func=init)
5454
plt.show()

0 commit comments

Comments
 (0)
0