From 66dfeaa6d623c1a712ec0e5af5e16c43b4b296ff Mon Sep 17 00:00:00 2001 From: Ayoub Gouasmi <96791563+gougouasmi@users.noreply.github.com> Date: Thu, 9 Nov 2023 15:23:47 -0800 Subject: [PATCH] Added tags for simple_scatter.py demo --- galleries/examples/animation/simple_scatter.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/galleries/examples/animation/simple_scatter.py b/galleries/examples/animation/simple_scatter.py index a006f73bab4c..3f8c285810a3 100644 --- a/galleries/examples/animation/simple_scatter.py +++ b/galleries/examples/animation/simple_scatter.py @@ -19,10 +19,10 @@ def animate(i): scat.set_offsets((x[i], 0)) - return scat, + return (scat,) -ani = animation.FuncAnimation(fig, animate, repeat=True, - frames=len(x) - 1, interval=50) + +ani = animation.FuncAnimation(fig, animate, repeat=True, frames=len(x) - 1, interval=50) # To save the animation using Pillow as a gif # writer = animation.PillowWriter(fps=15, @@ -31,3 +31,11 @@ def animate(i): # ani.save('scatter.gif', writer=writer) plt.show() + +# %% +# +# .. tags:: +# component: animation, +# plot-type: scatter, +# purpose: reference, +# level: intermediate