8000 Fix silly typo. · matplotlib/matplotlib@f20472d · GitHub
[go: up one dir, main page]

Skip to content

Commit f20472d

Browse files
committed
Fix silly typo.
1 parent 1d010d3 commit f20472d

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

lib/matplotlib/animation.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def setup(self, *args, **kwargs):
163163
mplDeprecation)
164164
self._setup(*args, **kwargs)
165165

166-
def _setup(self, outfile, dpi):
166+
def _setup(self, fig, outfile, dpi):
167167
self.outfile = outfile
168168
self.fig = fig
169169
self.dpi = dpi
@@ -204,8 +204,9 @@ def _run(self):
204204

205205
def finish(self):
206206
'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)
209210
self.cleanup()
210211

211212
def _finish(self):
@@ -241,8 +242,9 @@ def _args(self):
241242

242243
def cleanup(self):
243244
'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)
246248
self._cleanup()
247249

248250
def _cleanup(self):
@@ -287,7 +289,7 @@ def __init__(self, *args, **kwargs):
287289
self.frame_format = rcParams['animation.frame_format']
288290

289291
def _setup(self, fig, outfile, dpi, frame_prefix='_tmp', clear_temp=True,
290-
tmpdir=None):
292+
tmpdir=None):
291293
'''
292294
Perform setup for writing the movie file.
293295
@@ -400,9 +402,9 @@ def _finish(self):
400402
def _cleanup(self):
401403
MovieWriter._cleanup(self)
402404

403-
#Delete temporary files
405+
# Delete temporary files
404406
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
406408
verbose.report(
407409
'MovieWriter: clearing temporary fnames=%s' % self._tmpdir,
408410
level='debug')

0 commit comments

Comments
 (0)
0