From 9e425599bdf0e9ff0ac49c5a678511ab9416accf Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Mon, 28 Apr 2025 17:33:31 -0400 Subject: [PATCH] Backport PR #29975: 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 d0b418b7fdfb..bafe34d0d44a 100644 --- a/galleries/examples/animation/rain.py +++ b/galleries/examples/animation/rain.py @@ -67,8 +67,9 @@ 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() pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

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:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy