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
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: