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):
1515 line .set_ydata (np .sin (x + i / 10.0 )) # update the data
1616 return line ,
1717
18- # Init only required for blitting to give a clean slate.
19-
2018
19+ # Init only required for blitting to give a clean slate.
2120def init ():
2221 line .set_ydata (np .ma .array (x , mask = True ))
2322 return line ,
Original file line number Diff line number Diff line change 33from matplotlib .lines import Line2D
44import matplotlib .animation as animation
55
6+
67# This example uses subclassing, but there is no reason that the proper
78# function couldn't be set up and then use FuncAnimation. The code is long, but
89# not really complex. The length is due solely to the fact that there are a
910# total of 9 lines that need to be changed for the animation as well as 3
1011# subplots that need initial set up.
11-
12-
1312class SubplotAnimation (animation .TimedAnimation ):
1413 def __init__ (self ):
1514 fig = plt .figure ()
You can’t perform that action at this time.
0 commit comments