From 001ece82940be256776ceb0993736b0fe53b14f8 Mon Sep 17 00:00:00 2001 From: hannah Date: Sat, 29 Oct 2022 23:52:44 -0400 Subject: [PATCH 1/2] closes #24296 --- examples/animation/animate_decay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/animation/animate_decay.py b/examples/animation/animate_decay.py index c4e8eded4e6e..761d3e2beb3b 100644 --- a/examples/animation/animate_decay.py +++ b/examples/animation/animate_decay.py @@ -24,7 +24,7 @@ def data_gen(): def init(): ax.set_ylim(-1.1, 1.1) - ax.set_xlim(0, 10) + ax.set_xlim(0, 1) del xdata[:] del ydata[:] line.set_data(xdata, ydata) From 8112d55871879c763a0d1784e7f404c16327760d Mon Sep 17 00:00:00 2001 From: hannah Date: Sun, 30 Oct 2022 12:44:28 -0400 Subject: [PATCH 2/2] updated interval cause 10 is too fast --- examples/animation/animate_decay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/animation/animate_decay.py b/examples/animation/animate_decay.py index 761d3e2beb3b..0c056bc2f8a8 100644 --- a/examples/animation/animate_decay.py +++ b/examples/animation/animate_decay.py @@ -50,5 +50,5 @@ def run(data): return line, -ani = animation.FuncAnimation(fig, run, data_gen, interval=10, init_func=init) +ani = animation.FuncAnimation(fig, run, data_gen, interval=100, init_func=init) plt.show()