@@ -411,7 +411,7 @@ class FileMovieWriter(MovieWriter):
411
411
This must be sub-classed to be useful.
412
412
"""
413
413
def __init__ (self , * args , ** kwargs ):
414
- MovieWriter .__init__ (self , * args , ** kwargs )
414
+ super () .__init__ (* args , ** kwargs )
415
415
self .frame_format = mpl .rcParams ['animation.frame_format' ]
416
416
417
417
@cbook ._delete_parameter ("3.3" , "clear_temp" )
@@ -515,10 +515,10 @@ def finish(self):
515
515
# Call run here now that all frame grabbing is done. All temp files
516
516
# are available to be assembled.
517
517
self ._run ()
518
- MovieWriter .finish (self ) # Will call clean-up
518
+ super () .finish () # Will call clean-up
519
519
520
520
def cleanup (self ):
521
- MovieWriter .cleanup (self )
521
+ super () .cleanup ()
522
522
if self ._tmpdir :
523
523
_log .debug ('MovieWriter: clearing temporary path=%s' , self ._tmpdir )
524
524
self ._tmpdir .cleanup ()
@@ -1404,8 +1404,7 @@ def __init__(self, fig, interval=200, repeat_delay=0, repeat=True,
1404
1404
# sharing timers between animation objects for syncing animations.
1405
1405
if event_source is None :
1406
1406
event_source = fig .canvas .new_timer (interval = self ._interval )
1407
- Animation .__init__ (self , fig , event_source = event_source ,
1408
- * args , ** kwargs )
1407
+ super ().__init__ (fig , event_source = event_source , * args , ** kwargs )
1409
1408
1410
1409
def _step (self , * args ):
1411
1410
"""Handler for getting events."""
@@ -1415,7 +1414,7 @@ def _step(self, *args):
1415
1414
# _repeat_delay is set, change the event_source's interval to our loop
1416
1415
# delay and set the callback to one which will then set the interval
1417
1416
# back.
1418
- still_going = Animation ._step (self , * args )
1417
+ still_going = super () ._step (* args )
1419
1418
if not still_going and self .repeat :
1420
1419
self ._init_draw ()
1421
1420
self .frame_seq = self .new_frame_seq ()
@@ -1431,7 +1430,7 @@ def _stop(self, *args):
1431
1430
# given the potential pause here), remove the loop_delay callback as
1432
1431
# well.
1433
1432
self .event_source .remove_callback (self ._loop_delay )
1434
- Animation ._stop (self )
1433
+ super () ._stop ()
1435
1434
1436
1435
def _loop_delay (self , * args ):
1437
1436
# Reset the interval and change callbacks after the delay.
@@ -1473,7 +1472,7 @@ def __init__(self, fig, artists, *args, **kwargs):
1473
1472
# Use the list of artists as the framedata, which will be iterated
1474
1473
# over by the machinery.
1475
1474
self ._framedata = artists
1476
- TimedAnimation .__init__ (self , fig , * args , ** kwargs )
1475
+ super () .__init__ (fig , * args , ** kwargs )
1477
1476
1478
1477
def _init_draw (self ):
1479
1478
# Make all the artists involved in *any* frame invisible
@@ -1645,7 +1644,7 @@ def iter_frames(frames=frames):
1645
1644
# Needs to be initialized so the draw functions work without checking
1646
1645
self ._save_seq = []
1647
1646
1648
- TimedAnimation .__init__ (self , fig , ** kwargs )
1647
+ super () .__init__ (fig , ** kwargs )
1649
1648
1650
1649
# Need to reset the saved seq, since right now it will contain data
1651
1650
# for a single frame from init, which is not what we want.
0 commit comments