@@ -840,7 +840,8 @@ class Animation:
840
840
system notifications.
841
841
842
842
blit : bool, default: False
843
- Whether blitting is used to optimize drawing.
843
+ Whether blitting is used to optimize drawing. If the backend does not
844
+ support blitting, then this parameter has no effect.
844
845
845
846
See Also
846
847
--------
@@ -956,7 +957,7 @@ class to use, such as 'ffmpeg'.
956
957
extra_anim : list, default: []
957
958
Additional `Animation` objects that should be included
958
959
in the saved movie file. These need to be from the same
959
- `matplotlib.figure .Figure` instance. Also, animation frames will
960
+ `.Figure` instance. Also, animation frames will
960
961
just be simply combined, so there should be a 1:1 correspondence
961
962
between the frames from the different animations.
962
963
@@ -977,8 +978,7 @@ def func(current_frame: int, total_frames: int) -> Any
977
978
978
979
Example code to write the progress to stdout::
979
980
980
- progress_callback =\
981
- lambda i, n: print(f'Saving frame {i} of {n}')
981
+ progress_callback = lambda i, n: print(f'Saving frame {i}/{n}')
982
982
983
983
Notes
984
984
-----
@@ -1025,9 +1025,8 @@ def func(current_frame: int, total_frames: int) -> Any
1025
1025
1026
1026
all_anim = [self ]
1027
1027
if extra_anim is not None :
1028
- all_anim .extend (anim
1029
- for anim
1030
- in extra_anim if anim ._fig is self ._fig )
1028
+ all_anim .extend (anim for anim in extra_anim
1029
+ if anim ._fig is self ._fig )
1031
1030
1032
1031
# If we have the name of a writer, instantiate an instance of the
1033
1032
# registered class.
0 commit comments