From 7722272af2ed2e83e0cbeabc04a3e569a99a2be8 Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Sun, 27 Apr 2025 21:37:12 -0400 Subject: [PATCH] DOC: correct signature for animation update function in rain example --- galleries/examples/animation/rain.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/galleries/examples/animation/rain.py b/galleries/examples/animation/rain.py index 4303e567d074..eacfaecc59e2 100644 --- a/galleries/examples/animation/rain.py +++ b/galleries/examples/animation/rain.py @@ -67,10 +67,11 @@ def update(frame_number): scat.set_edgecolors(rain_drops['color']) scat.set_sizes(rain_drops['size']) scat.set_offsets(rain_drops['position']) + return [scat] # Construct the animation, using the update function as the animation director. -animation = FuncAnimation(fig, update, interval=10, save_count=100) +animation = FuncAnimation(fig, update, interval=10, save_count=100, blit=True) plt.show() # %%