From 4fe77ad7393669233a55b6cc85bf08cffd1c672e Mon Sep 17 00:00:00 2001 From: "armindamon.riess" <armindamon.riess@uzh.ch> Date: Tue, 13 Dec 2022 15:26:30 +0100 Subject: [PATCH] Changed axis limits --- plots/animation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plots/animation.py b/plots/animation.py index b731369..95f6264 100644 --- a/plots/animation.py +++ b/plots/animation.py @@ -20,8 +20,8 @@ def animate(i): yi = y[i*N:(i+1)*N] plt.cla() plt.scatter(xi, yi, s=1) - plt.xlim(-2, 2) - plt.ylim(-2, 2) + plt.xlim(-1, 1) + plt.ylim(-1, 1) animation = FuncAnimation(fig, animate, frames=nSteps) animation.save("animation.mp4", writer="ffmpeg") -- GitLab