matplotlib.animation.
TimedAnimation
(fig, interval=200, repeat_delay=None, repeat=True, event_source=None, *args, **kwargs)[source]¶Bases: matplotlib.animation.Animation
Animation
subclass for time-based animation.
A new frame is drawn every interval milliseconds.
Parameters: |
|
---|
new_frame_seq
()¶Creates a new sequence of frame information.
new_saved_frame_seq
()¶Creates a new sequence of saved/cached frame information.
save
(filename, writer=None, fps=None, dpi=None, codec=None, bitrate=None, extra_args=None, metadata=None, extra_anim=None, savefig_kwargs=None)¶Saves a movie file by drawing every frame.
Parameters: |
|
---|
Notes
fps, codec, bitrate, extra_args, metadata are used to
construct a MovieWriter
instance and can only be
passed if writer
is a string. If they are passed as
non-None
and writer
is a MovieWriter
, a
RuntimeError
will be raised.
to_html5_video
(embed_limit=None)¶Returns animation as an HTML5 video tag.
This saves the animation as an h264 video, encoded in base64
directly into the HTML5 video tag. This respects the rc parameters
for the writer as well as the bitrate. This also makes use of the
interval
to control the speed, and uses the repeat
parameter to decide whether to loop.
to_jshtml
(fps=None, embed_frames=True, default_mode=None)¶Generate HTML representation of the animation