Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 88609c7

Browse files
QuLogicmeeseeksmachine
authored andcommitted
Backport PR #24310: show axes changing in animate decay example
1 parent cc76eb6 commit 88609c7

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)