From 5ecf41a87a10bae4db2aa13324889d5bba90fb72 Mon Sep 17 00:00:00 2001 From: Anton Akhmerov <anton.akhmerov@gmail.com> Date: Tue, 12 Mar 2024 17:44:08 +0100 Subject: [PATCH] fix video compilation --- docs/3_drude_model.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/3_drude_model.md b/docs/3_drude_model.md index 8176509..883e333 100644 --- a/docs/3_drude_model.md +++ b/docs/3_drude_model.md @@ -108,7 +108,7 @@ scatter_pts = scattering_positions r_min = np.min(r.reshape(2, -1), axis=1) - 1 r_max = np.max(r.reshape(2, -1), axis=1) + 1 -fig = pyplot.figure(figsize=(9, 6)) +fig = pyplot.figure(figsize=(9, 6), dpi=70) ax = fig.add_subplot(1, 1, 1) ax.axis("off") ax.set(xlim=(r_min[0], r_max[0]), ylim=(r_min[1], r_max[1])) @@ -124,7 +124,7 @@ def frame(i): trajectories.set_data(*concatenated_lines) scatterers.set_offsets(scatter_pts[:, :i].reshape(2, -1).T) -anim = animation.FuncAnimation(fig, frame, interval=100) +anim = animation.FuncAnimation(fig, frame, frames=scatter_pts.shape[1], interval=100) pyplot.close() -- GitLab