Skip to content

Commit 495fb64

Browse files
authored
Merge pull request #29983 from meeseeksmachine/auto-backport-of-pr-29975-on-v3.10.x
Backport PR #29975 on branch v3.10.x (DOC: correct signature for animation update function in rain example)
2 parents 950f2bc + 9e42559 commit 495fb64

File tree

1 file changed

+2
-1
lines changed
  • galleries/examples/animation

1 file changed

+2
-1
lines changed

galleries/examples/animation/rain.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,9 @@ def update(frame_number):
6767
scat.set_edgecolors(rain_drops['color'])
6868
scat.set_sizes(rain_drops['size'])
6969
scat.set_offsets(rain_drops['position'])
70+
return [scat]
7071

7172

7273
# Construct the animation, using the update function as the animation director.
73-
animation = FuncAnimation(fig, update, interval=10, save_count=100)
74+
animation = FuncAnimation(fig, update, interval=10, save_count=100, blit=True)
7475
plt.show()

0 commit comments

Comments
 (0)
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