@@ -163,7 +163,7 @@ def setup(self, *args, **kwargs):
163
163
mplDeprecation )
164
164
self ._setup (* args , ** kwargs )
165
165
166
- def _setup (self , outfile , dpi ):
166
+ def _setup (self , fig , outfile , dpi ):
167
167
self .outfile = outfile
168
168
self .fig = fig
169
169
self .dpi = dpi
@@ -204,8 +204,9 @@ def _run(self):
204
204
205
205
def finish (self ):
206
206
'Finish any processing for writing the movie.'
207
- warnings .warn ('finish interacts poorly with the saving context-manager' ,
208
- mplDeprecation )
207
+ warnings .warn (
208
+ 'finish interacts poorly with the saving context-manager' ,
209
+ mplDeprecation )
209
210
self .cleanup ()
210
211
211
212
def _finish (self ):
@@ -241,8 +242,9 @@ def _args(self):
241
242
242
243
def cleanup (self ):
243
244
'Clean-up and collect the process used to write the movie file.'
244
- warnings .warn ('cleanup interacts poorly with the saving context-manager' ,
245
- mplDeprecation )
245
+ warnings .warn (
246
+ 'cleanup interacts poorly with the saving context-manager' ,
247
+ mplDeprecation )
246
248
self ._cleanup ()
247
249
248
250
def _cleanup (self ):
@@ -287,7 +289,7 @@ def __init__(self, *args, **kwargs):
287
289
self .frame_format = rcParams ['animation.frame_format' ]
288
290
289
291
def _setup (self , fig , outfile , dpi , frame_prefix = '_tmp' , clear_temp = True ,
290
- tmpdir = None ):
292
+ tmpdir = None ):
291
293
'''
292
294
Perform setup for writing the movie file.
293
295
@@ -400,9 +402,9 @@ def _finish(self):
400
402
def _cleanup (self ):
401
403
MovieWriter ._cleanup (self )
402
404
403
- #Delete temporary files
405
+ # Delete temporary files
404
406
if self .clear_temp :
405
- if self ._temp_names is None : # tmpdir created with mkdtemp
407
+ if self ._temp_names is None : # tmpdir created with mkdtemp
406
408
verbose .report (
407
409
'MovieWriter: clearing temporary fnames=%s' % self ._tmpdir ,
408
410
level = 'debug' )
0 commit comments