@@ -486,7 +486,7 @@ class FFMpegBase(object):
486
486
'''Mixin class for FFMpeg output
487
487
488
488
To be useful this must be multiply-inherited from with a
489
- `MoveWriterBase ` sub-class.
489
+ `MovieWriterBase ` sub-class.
490
490
'''
491
491
492
492
exec_key = 'animation.ffmpeg_path'
@@ -560,7 +560,7 @@ class AVConvBase(FFMpegBase):
560
560
'''Mixin class for avconv output
561
561
562
562
To be useful this must be multiply-inherited from with a
563
- `MoveWriterBase ` sub-class.
563
+ `MovieWriterBase ` sub-class.
564
564
'''
565
565
566
566
exec_key = 'animation.avconv_path'
@@ -671,7 +671,7 @@ class ImageMagickBase(object):
671
671
'''Mixin class for ImageMagick output
672
672
673
673
To be useful this must be multiply-inherited from with a
674
- `MoveWriterBase ` sub-class.
674
+ `MovieWriterBase ` sub-class.
675
675
'''
676
676
677
677
exec_key = 'animation.convert_path'
@@ -850,7 +850,7 @@ def save(self, filename, writer=None, fps=None, dpi=None, codec=None,
850
850
----------
851
851
852
852
filename : str
853
- the output filename, e.g., :file:`mymovie.mp4`
853
+ The output filename, e.g., :file:`mymovie.mp4`
854
854
855
855
writer : :class:`MovieWriter` or str, optional
856
856
A `MovieWriter` instance to use or a key that identifies a
@@ -863,48 +863,48 @@ class to use, such as 'ffmpeg' or 'mencoder'. If `None`,
863
863
the frames per second.
864
864
865
865
dpi : number, optional
866
- controls the dots per inch for the movie frames. This
866
+ Controls the dots per inch for the movie frames. This
867
867
combined with the figure's size in inches controls the size of
868
868
the movie. If None, defaults to ``rcparam['savefig.dpi']``
869
869
870
870
codec : str, optional
871
- the video codec to be used. Not all codecs are supported by
871
+ The video codec to be used. Not all codecs are supported by
872
872
a given :class:`MovieWriter`. 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 amount 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
880
880
``rcParam['animation.bitrate']``
881
881
882
882
extra_args : list, optional
883
- list of extra string arguments to be passed to the
883
+ List of extra string arguments to be passed to the
884
884
underlying movie utility. If `None`, defaults to
885
885
``rcParams['animation.extra_args']``
886
886
887
887
metadata : dict, optional
888
- dictionary of keys and values for metadata to include in
888
+ Dictionary of keys and values for metadata to include in
889
889
the output file. Some keys that may be of use include:
890
890
title, artist, genre, subject, copyright, srcform, comment.
891
891
892
892
extra_anim : list, optional
893
- additional `Animation` objects that should be included in
893
+ Additional `Animation` objects that should be included in
894
894
the saved movie file. These need to be from the same
895
895
`matplotlib.Figure` instance. Also, animation frames will
896
896
just be simply combined, so there should be a 1:1
897
897
correspondence between the frames from the different
898
898
animations.
899
899
900
900
savefig_kwargs : dict, optional
901
- is a dictionary containing keyword arguments to be passed
901
+ Is a dictionary containing keyword arguments to be passed
902
902
on to the 'savefig' command which is called repeatedly to
903
903
save the individual frames.
904
904
905
905
Notes
906
906
-----
907
- fps, codec, bitrate, extra_args, metadata are used are used to
907
+ fps, codec, bitrate, extra_args, metadata are used to
908
908
construct a :class:`MovieWriter` instance and can only be
909
909
passed if `writer` is a string. If they are passed as
910
910
non-`None` and ``writer`` is a :class:`MovieWriter`, a
@@ -1201,13 +1201,13 @@ class TimedAnimation(Animation):
1201
1201
If the animation in repeated, adds a delay in milliseconds
1202
1202
before repeating the animation. Defaults to None
1203
1203
1204
- repeat: bool, optional
1205
- controls whether the animation should repeat when the sequence
1204
+ repeat : bool, optional
1205
+ Controls whether the animation should repeat when the sequence
1206
1206
of frames is completed. Defaults to `True`.
1207
1207
1208
1208
blit : bool, optional
1209
- controls whether blitting is used to optimize drawing. Defaults
1210
- to `False`.
1209
+ Controls whether blitting is used to optimize drawing. Defaults
1210
+ to `False`.
1211
1211
1212
1212
'''
1213
1213
def __init__ (self , fig , interval = 200 , repeat_delay = None , repeat = True ,
@@ -1279,7 +1279,7 @@ class ArtistAnimation(TimedAnimation):
1279
1279
other needed events.
1280
1280
1281
1281
artists : list
1282
- with each list entry a collection of artists that
1282
+ With each list entry a collection of artists that
1283
1283
represent what needs to be enabled on each frame. These will
1284
1284
be disabled for other frames.
1285
1285
@@ -1290,13 +1290,13 @@ class ArtistAnimation(TimedAnimation):
1290
1290
If the animation in repeated, adds a delay in milliseconds
1291
1291
before repeating the animation. Defaults to `None`.
1292
1292
1293
- repeat: bool, optional
1294
- controls whether the animation should repeat when the sequence
1293
+ repeat : bool, optional
1294
+ Controls whether the animation should repeat when the sequence
1295
1295
of frames is completed. Defaults to `True`.
1296
1296
1297
1297
blit : bool, optional
1298
- controls whether blitting is used to optimize drawing. Defaults
1299
- to `False`.
1298
+ Controls whether blitting is used to optimize drawing. Defaults
1299
+ to `False`.
1300
1300
1301
1301
'''
1302
1302
def __init__ (self , fig , artists , * args , ** kwargs ):
@@ -1374,12 +1374,16 @@ def func(fr: object, *fargs) -> iterable_of_artists:
1374
1374
1375
1375
If a generator function, then must have the signature ::
1376
1376
1377
- def gen_function():
1377
+ def gen_function() -> obj:
1378
+
1379
+ In all of these cases, the values in `frames` is simply
1380
+ passed through to the user-supplied `func` and thus can be
1381
+ of any type.
1378
1382
1379
- If `None`, then equivalent to passing ``itertools.count``
1383
+ If `None`, then equivalent to passing ``itertools.count``.
1380
1384
1381
1385
init_func : callable, optional
1382
- a function used to draw a clear frame. If not given, the
1386
+ A function used to draw a clear frame. If not given, the
1383
1387
results of drawing from the first item in the frames sequence
1384
1388
will be used. This function will be called once before the
1385
1389
first frame.
@@ -1404,12 +1408,12 @@ def init_func() -> iterable_of_artists:
1404
1408
If the animation in repeated, adds a delay in milliseconds
1405
1409
before repeating the animation. Defaults to `None`.
1406
1410
1407
- repeat: bool, optional
1408
- controls whether the animation should repeat when the sequence
1411
+ repeat : bool, optional
1412
+ Controls whether the animation should repeat when the sequence
1409
1413
of frames is completed. Defaults to `True`
1410
1414
1411
1415
blit : bool, optional
1412
- controls whether blitting is used to optimize drawing. Defaults
1416
+ Controls whether blitting is used to optimize drawing. Defaults
1413
1417
to `False`.
1414
1418
1415
1419
'''
0 commit comments