Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9846a6f commit 9e42559Copy full SHA for 9e42559
1 file changed
galleries/examples/animation/rain.py
@@ -67,8 +67,9 @@ def update(frame_number):
67
scat.set_edgecolors(rain_drops['color'])
68
scat.set_sizes(rain_drops['size'])
69
scat.set_offsets(rain_drops['position'])
70
+ return [scat]
71
72
73
# Construct the animation, using the update function as the animation director.
-animation = FuncAnimation(fig, update, interval=10, save_count=100)
74
+animation = FuncAnimation(fig, update, interval=10, save_count=100, blit=True)
75
plt.show()
0 commit comments