Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 495fb64

Browse filesBrowse 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
Copy full SHA for 495fb64

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

‎galleries/examples/animation/rain.py

Copy file name to clipboardExpand all lines: galleries/examples/animation/rain.py
+2-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.