File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -15,9 +15,8 @@ def animate(i):
15
15
line .set_ydata (np .sin (x + i / 10.0 )) # update the data
16
16
return line ,
17
17
18
- # Init only required for blitting to give a clean slate.
19
-
20
18
19
+ # Init only required for blitting to give a clean slate.
21
20
def init ():
22
21
line .set_ydata (np .ma .array (x , mask = True ))
23
22
return line ,
Original file line number Diff line number Diff line change 3
3
from matplotlib .lines import Line2D
4
4
import matplotlib .animation as animation
5
5
6
+
6
7
# This example uses subclassing, but there is no reason that the proper
7
8
# function couldn't be set up and then use FuncAnimation. The code is long, but
8
9
# not really complex. The length is due solely to the fact that there are a
9
10
# total of 9 lines that need to be changed for the animation as well as 3
10
11
# subplots that need initial set up.
11
-
12
-
13
12
class SubplotAnimation (animation .TimedAnimation ):
14
13
def __init__ (self ):
15
14
fig = plt .figure ()
You can’t perform that action at this time.
0 commit comments