@@ -241,7 +241,7 @@ def isAvailable(cls):
241241
242242class FileMovieWriter (MovieWriter ):
243243 '`MovieWriter` subclass that handles writing to a file.'
244- def __init__ (self , * args ):
244+ def __init__ (self , * args , ** kwargs ):
245245 MovieWriter .__init__ (self , * args )
246246 self .frame_format = rcParams ['animation.frame_format' ]
247247
@@ -379,7 +379,7 @@ class MencoderBase:
379379 @property
380380 def output_args (self ):
381381 args = ['-o' , self .outfile , '-ovc' , 'lavc' , 'vcodec=%s' % self .codec ]
382- if self .bitrate :
382+ if self .bitrate > 0 :
383383 args .append ('vbitrate=%d' % self .bitrate )
384384 if self .extra_args :
385385 args .extend (self .extra_args )
@@ -491,13 +491,13 @@ def save(self, filename, writer=None, fps=None, dpi=None, codec=None,
491491 *codec* is the video codec to be used. Not all codecs are supported
492492 by a given :class:`MovieWriter`. If none is given, this defaults to the
493493 value specified by the rcparam `animation.codec`.
494-
494+
495495 *bitrate* specifies the amount of bits used per second in the
496496 compressed movie, in kilobits per second. A higher number means a
497497 higher quality movie, but at the cost of increased file size. If no
498498 value is given, this defaults to the value given by the rcparam
499499 `animation.bitrate`.
500-
500+
501501 *extra_anim* is a list of additional `Animation` objects that should
502502 be included in the saved movie file. These need to be from the same
503503 `matplotlib.Figure` instance. Also, animation frames will just be
@@ -531,9 +531,9 @@ def save(self, filename, writer=None, fps=None, dpi=None, codec=None,
531531 if bitrate is None :
532532 bitrate = rcParams ['animation.bitrate' ]
533533
534- all_anim = [self ]
535- if not extra_anim is None :
536- all_anim .extend (anim for anim in extra_anim if anim ._fig is self ._fig )
534+ all_anim = [self ]
535+ if not extra_anim is None :
536+ all_anim .extend (anim for anim in extra_anim if anim ._fig is self ._fig )
537537
538538 # If we have the name of a writer, instantiate an instance of the
539539 # registered class.
0 commit comments