Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9f924fa

Browse files
vamshipystory645
andauthored
Update galleries/examples/animation/animated_FuncAnimation.py
Co-authored-by: hannah <[email protected]>
1 parent 59e82ba commit 9f924fa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

galleries/examples/animation/animated_FuncAnimation.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,8 @@ def update(frame, line, text, decades, widgets_data):
5353
# Set up the animation
5454
ani = animation.FuncAnimation(
5555
fig, # Figure to update
56-
update, # Update function
56+
functools.partial(update, line=line, text=text, decades=decades, widgets_data=widgets_data),
5757
frames=len(decades), # Number of frames
58-
fargs=(line, text, decades, widgets_data), # Additional arguments for update
5958
interval=1000, # Delay between frames in milliseconds
6059
blit=False, # Whether to use blit for faster updates
6160
)

0 commit comments

Comments
 (0)