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

Skip to content

Commit f5661e2

Browse files
authored
Update animated_FuncAnimation.py
1 parent c8e34de commit f5661e2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

galleries/examples/animation/animated_FuncAnimation.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"""
77
import matplotlib.pyplot as plt
88
import numpy as np
9+
import functools
910

1011
import matplotlib.animation as animation
1112

@@ -54,7 +55,8 @@ def update(frame, line, text, decades, widgets_data):
5455

5556
ani = animation.FuncAnimation(
5657
fig, # Figure to update
57-
functools.partial(update, line=line, text=text, decades=decades, widgets_data=widgets_data),
58+
functools.partial(update, line=line, text=text,
59+
decades=decades, widgets_data=widgets_data),
5860
frames=len(decades), # Number of frames
5961
interval=1000, # Delay between frames in milliseconds
6062
blit=False, # Whether to use blit for faster updates

0 commit comments

Comments
 (0)