@@ -68,8 +68,7 @@ def adjusted_figsize(w, h, dpi, n):
68
68
69
69
# A registry for available MovieWriter classes
70
70
class MovieWriterRegistry (object ):
71
- '''Registry of available writer classes by human readable name
72
- '''
71
+ '''Registry of available writer classes by human readable name.'''
73
72
def __init__ (self ):
74
73
self .avail = dict ()
75
74
self ._registered = dict ()
@@ -111,7 +110,7 @@ def list(self):
111
110
return list (self .avail .keys ())
112
111
113
112
def is_available (self , name ):
114
- '''Check if given writer is available by name
113
+ '''Check if given writer is available by name.
115
114
116
115
Parameters
117
116
----------
@@ -277,6 +276,7 @@ def finish(self):
277
276
def grab_frame (self , ** savefig_kwargs ):
278
277
'''
279
278
Grab the image information from the figure and save as a movie frame.
279
+
280
280
All keyword arguments in savefig_kwargs are passed on to the 'savefig'
281
281
command that saves the figure.
282
282
'''
@@ -344,7 +344,7 @@ def isAvailable(cls):
344
344
345
345
346
346
class FileMovieWriter (MovieWriter ):
347
- '''`MovieWriter` for writing to individual files and stitching at the end
347
+ '''`MovieWriter` for writing to individual files and stitching at the end.
348
348
349
349
This must be sub-classed to be useful.
350
350
'''
@@ -483,7 +483,7 @@ def cleanup(self):
483
483
# Base class of ffmpeg information. Has the config keys and the common set
484
484
# of arguments that controls the *output* side of things.
485
485
class FFMpegBase (object ):
486
- '''Mixin class for FFMpeg output
486
+ '''Mixin class for FFMpeg output.
487
487
488
488
To be useful this must be multiply-inherited from with a
489
489
`MovieWriterBase` sub-class.
@@ -537,7 +537,7 @@ def _args(self):
537
537
# Combine FFMpeg options with temp file-based writing
538
538
@writers .register ('ffmpeg_file' )
539
539
class FFMpegFileWriter (FileMovieWriter , FFMpegBase ):
540
- '''File-based ffmpeg writer
540
+ '''File-based ffmpeg writer.
541
541
542
542
Frames are written to temporary files on disk and then stitched
543
543
together at the end.
@@ -557,7 +557,7 @@ def _args(self):
557
557
# Base class of avconv information. AVConv has identical arguments to
558
558
# FFMpeg
559
559
class AVConvBase (FFMpegBase ):
560
- '''Mixin class for avconv output
560
+ '''Mixin class for avconv output.
561
561
562
562
To be useful this must be multiply-inherited from with a
563
563
`MovieWriterBase` sub-class.
@@ -580,7 +580,7 @@ class AVConvWriter(AVConvBase, FFMpegWriter):
580
580
# Combine AVConv options with file-based writing
581
581
@writers .register ('avconv_file' )
582
582
class AVConvFileWriter (AVConvBase , FFMpegFileWriter ):
583
- '''File-based avconv writer
583
+ '''File-based avconv writer.
584
584
585
585
Frames are written to temporary files on disk and then stitched
586
586
together at the end.
@@ -668,7 +668,7 @@ def _args(self):
668
668
669
669
# Base class for animated GIFs with convert utility
670
670
class ImageMagickBase (object ):
671
- '''Mixin class for ImageMagick output
671
+ '''Mixin class for ImageMagick output.
672
672
673
673
To be useful this must be multiply-inherited from with a
674
674
`MovieWriterBase` sub-class.
@@ -706,7 +706,7 @@ def _init_from_registry(cls):
706
706
@classmethod
707
707
def isAvailable (cls ):
708
708
'''
709
- Check to see if a ImageMagickWriter is actually available
709
+ Check to see if a ImageMagickWriter is actually available.
710
710
711
711
Done by first checking the windows registry (if applicable) and then
712
712
running the commandline tool.
@@ -725,7 +725,7 @@ def isAvailable(cls):
725
725
# former.
726
726
@writers .register ('imagemagick' )
727
727
class ImageMagickWriter (ImageMagickBase , MovieWriter ):
728
- '''Pipe-based animated gif
728
+ '''Pipe-based animated gif.
729
729
730
730
Frames are streamed directly to ImageMagick via a pipe and written
731
731
in a single pass.
@@ -745,7 +745,7 @@ def _args(self):
745
745
# former.
746
746
@writers .register ('imagemagick_file' )
747
747
class ImageMagickFileWriter (ImageMagickBase , FileMovieWriter ):
748
- '''File-based animated gif writer
748
+ '''File-based animated gif writer.
749
749
750
750
Frames are written to temporary files on disk and then stitched
751
751
together at the end.
@@ -873,7 +873,7 @@ class to use, such as 'ffmpeg' or 'mencoder'. If `None`,
873
873
default to ``rcParams['animation.codec']``
874
874
875
875
bitrate : number, optional
876
- Specifies the amount of bits used per second in the
876
+ Specifies the number of bits used per second in the
877
877
compressed movie, in kilobits per second. A higher number
878
878
means a higher quality movie, but at the cost of increased
879
879
file size. If `None`, defaults to
@@ -1184,7 +1184,7 @@ def _repr_html_(self):
1184
1184
1185
1185
1186
1186
class TimedAnimation (Animation ):
1187
- ''':class:`Animation` subclass for time-based animation
1187
+ ''':class:`Animation` subclass for time-based animation.
1188
1188
1189
1189
A new frame is drawn every *interval* milliseconds.
1190
1190
@@ -1199,7 +1199,7 @@ class TimedAnimation(Animation):
1199
1199
1200
1200
repeat_delay : number, optional
1201
1201
If the animation in repeated, adds a delay in milliseconds
1202
- before repeating the animation. Defaults to None
1202
+ before repeating the animation. Defaults to ` None`
1203
1203
1204
1204
repeat : bool, optional
1205
1205
Controls whether the animation should repeat when the sequence
@@ -1284,7 +1284,7 @@ class ArtistAnimation(TimedAnimation):
1284
1284
be disabled for other frames.
1285
1285
1286
1286
interval : number, optional
1287
- Delay between frames in miliseconds . Defaults to 200.
1287
+ Delay between frames in milliseconds . Defaults to 200.
1288
1288
1289
1289
repeat_delay : number, optional
1290
1290
If the animation in repeated, adds a delay in milliseconds
@@ -1346,7 +1346,8 @@ def _draw_frame(self, artists):
1346
1346
1347
1347
1348
1348
class FuncAnimation (TimedAnimation ):
1349
- '''Makes an animation by repeatedly calling a function ``func``
1349
+ '''
1350
+ Makes an animation by repeatedly calling a function ``func``.
1350
1351
1351
1352
1352
1353
Parameters
@@ -1410,7 +1411,7 @@ def init_func() -> iterable_of_artists:
1410
1411
1411
1412
repeat : bool, optional
1412
1413
Controls whether the animation should repeat when the sequence
1413
- of frames is completed. Defaults to `True`
1414
+ of frames is completed. Defaults to `True`.
1414
1415
1415
1416
blit : bool, optional
1416
1417
Controls whether blitting is used to optimize drawing. Defaults
0 commit comments