From 88609c7d3f06d9b15655ad77918e022dac84f026 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Tue, 1 Nov 2022 03:32:23 -0400 Subject: [PATCH] Backport PR #24310: show axes changing in animate decay example --- examples/animation/animate_decay.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/animation/animate_decay.py b/examples/animation/animate_decay.py index c4e8eded4e6e..0c056bc2f8a8 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) @@ -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()