@@ -137,7 +137,7 @@ class AbstractMovieWriter(six.with_metaclass(abc.ABCMeta)):
137
137
'''
138
138
139
139
@abc .abstractmethod
140
- def setup (self , fig , outfile , dpi , * args ):
140
+ def setup (self , fig , outfile , dpi ):
141
141
'''
142
142
Perform setup for writing the movie file.
143
143
@@ -163,13 +163,13 @@ def finish(self):
163
163
'Finish any processing for writing the movie.'
164
164
165
165
@contextlib .contextmanager
166
- def saving (self , fig , outfile , dpi , * args ):
166
+ def saving (self , fig , outfile , dpi , * args , ** kwargs ):
167
167
'''
168
168
Context manager to facilitate writing the movie file.
169
169
170
170
All arguments are passed on to `setup`.
171
171
'''
172
- self .setup (fig , outfile , dpi , * args )
172
+ self .setup (fig , outfile , dpi , * args , ** kwargs )
173
173
yield
174
174
self .finish ()
175
175
@@ -246,7 +246,7 @@ def frame_size(self):
246
246
width_inches , height_inches = self .fig .get_size_inches ()
247
247
return width_inches * self .dpi , height_inches * self .dpi
248
248
249
- def setup (self , fig , outfile , dpi , * args ):
249
+ def setup (self , fig , outfile , dpi ):
250
250
'''
251
251
Perform setup for writing the movie file.
252
252
0 commit comments