-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy pathmatplotlib.animation.FuncAnimation.html
More file actions
379 lines (349 loc) · 28 KB
/
matplotlib.animation.FuncAnimation.html
File metadata and controls
379 lines (349 loc) · 28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>matplotlib.animation.FuncAnimation — Matplotlib 2.2.5 documentation</title>
<link rel="stylesheet" href="../../_static/mpl.css"
type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css"
type="text/css" />
<link rel="stylesheet" href="../../_static/graphviz.css" type="text/css" />
<link rel="stylesheet" href="../../_static/gallery.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '2.2.5',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true,
SOURCELINK_SUFFIX: '.txt'
};
</script>
<script type="text/javascript" src="../../_static/jquery.js"></script>
<script type="text/javascript" src="../../_static/underscore.js"></script>
<script type="text/javascript" src="../../_static/doctools.js"></script>
<script type="text/javascript" src="../../_static/language_data.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-AMS-MML_HTMLorMML"></script>
<link rel="search" type="application/opensearchdescription+xml"
title="Search within Matplotlib 2.2.5 documentation"
href="../../_static/opensearch.xml"/>
<link rel="shortcut icon" href="../../_static/favicon.ico"/>
<link rel="index" title="Index" href="../../genindex.html"
/>
<link rel="search" title="Search" href="../../search.html"
/>
<link rel="top" title="Matplotlib 2.2.5 documentation" href="../../index.html" />
<link rel="up" title="animation" href="../animation_api.html" />
<link rel="next" title="matplotlib.animation.ArtistAnimation" href="matplotlib.animation.ArtistAnimation.html" />
<link rel="prev" title="animation" href="../animation_api.html" />
<link rel="canonical" href="https://matplotlib.org/stable/api/_as_gen/matplotlib.animation.FuncAnimation.html" />
<script data-domain="matplotlib.org" defer="defer" src="https://views.scientific-python.org/js/script.js"></script>
</head>
<body>
<div id="unreleased-message"> You are reading an old version of the documentation (v2.2.5). For the latest version see <a href="https://matplotlib.org/stable/api/_as_gen/matplotlib.animation.FuncAnimation.html">https://matplotlib.org/stable/api/_as_gen/matplotlib.animation.FuncAnimation.html</a></div>
<div style="background-color: white; text-align: left; padding: 10px 10px 15px 15px; position: relative;">
<a href="../../index.html">
<div style="float: left; position: absolute; width: 496px; bottom: 0; padding-bottom: 24px"><span style="float: right; color: #789; background: white">Version 2.2.5</span></div>
<img src="../../_static/logo2.png" height="125px" border="0" alt="matplotlib"/></a>
<!-- The "Fork me on github" ribbon -->
<div id="forkongithub"><a href="https://github.com/matplotlib/matplotlib">Fork me on GitHub</a></div>
</div>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../../genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="../../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="matplotlib.animation.ArtistAnimation.html" title="matplotlib.animation.ArtistAnimation"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="../animation_api.html" title="animation"
accesskey="P">previous</a> |</li>
<li><a href="../../index.html">home</a>| </li>
<li><a href="../../gallery/index.html">examples</a>| </li>
<li><a href="../../tutorials/index.html">tutorials</a>| </li>
<li><a href="../pyplot_summary.html">pyplot</a>| </li>
<li><a href="../../contents.html">docs</a> »</li>
<li><a href="../index.html" >The Matplotlib API</a> »</li>
<li><a href="../animation_api.html" accesskey="U">animation</a> »</li>
</ul>
</div>
<div class="sphinxsidebar">
<div class="sphinxsidebarwrapper">
<div id="searchbox" style="display: none" role="search">
<h3>Quick search</h3>
<div class="searchformwrapper">
<form class="search" action="../../search.html" method="get">
<input type="text" name="q" />
<input type="submit" value="Go" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
<h3><a href="../../contents.html">Table of Contents</a></h3>
<ul>
<li><a class="reference internal" href="#">matplotlib.animation.FuncAnimation</a><ul>
<li><a class="reference internal" href="#examples-using-matplotlib-animation-funcanimation">Examples using <code class="docutils literal notranslate"><span class="pre">matplotlib.animation.FuncAnimation</span></code></a></li>
</ul>
</li>
</ul>
<div class="relations">
<h3>Related Topics</h3>
<ul>
<li><a href="../../contents.html">Documentation overview</a><ul>
<li><a href="../index.html">The Matplotlib API</a><ul>
<li><a href="../animation_api.html">animation</a><ul>
<li>Previous: <a href="../animation_api.html" title="previous chapter">animation</a></li>
<li>Next: <a href="matplotlib.animation.ArtistAnimation.html" title="next chapter">matplotlib.animation.ArtistAnimation</a></li>
</ul></li>
</ul></li>
</ul></li>
</ul>
</div>
<div id="sidebar-pagesource" role="note" aria-label="source link"
style="margin-top: 1.5em; padding-top: 0.1em; border-top: 1px solid #86989b">
<a href="../../_sources/api/_as_gen/matplotlib.animation.FuncAnimation.rst.txt"
style="color: #c0c0c0" rel="nofollow">Show Page Source</a>
</div>
</div>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body">
<div class="section" id="matplotlib-animation-funcanimation">
<h1>matplotlib.animation.FuncAnimation<a class="headerlink" href="#matplotlib-animation-funcanimation" title="Permalink to this headline">¶</a></h1>
<dl class="class">
<dt id="matplotlib.animation.FuncAnimation">
<em class="property">class </em><code class="descclassname">matplotlib.animation.</code><code class="descname">FuncAnimation</code><span class="sig-paren">(</span><em>fig</em>, <em>func</em>, <em>frames=None</em>, <em>init_func=None</em>, <em>fargs=None</em>, <em>save_count=None</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/matplotlib/animation.html#FuncAnimation"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#matplotlib.animation.FuncAnimation" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference internal" href="matplotlib.animation.TimedAnimation.html#matplotlib.animation.TimedAnimation" title="matplotlib.animation.TimedAnimation"><code class="xref py py-class docutils literal notranslate"><span class="pre">matplotlib.animation.TimedAnimation</span></code></a></p>
<p>Makes an animation by repeatedly calling a function <code class="docutils literal notranslate"><span class="pre">func</span></code>.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><dl class="first last docutils">
<dt><strong>fig</strong> <span class="classifier-delimiter">:</span> <span class="classifier">matplotlib.figure.Figure</span></dt>
<dd><p class="first last">The figure object that is used to get draw, resize, and any
other needed events.</p>
</dd>
<dt><strong>func</strong> <span class="classifier-delimiter">:</span> <span class="classifier">callable</span></dt>
<dd><p class="first">The function to call at each frame. The first argument will
be the next value in <code class="docutils literal notranslate"><span class="pre">frames</span></code>. Any additional positional
arguments can be supplied via the <code class="docutils literal notranslate"><span class="pre">fargs</span></code> parameter.</p>
<p>The required signature is:</p>
<div class="last highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">def</span> <span class="nf">func</span><span class="p">(</span><span class="n">frame</span><span class="p">,</span> <span class="o">*</span><span class="n">fargs</span><span class="p">)</span> <span class="o">-></span> <span class="n">iterable_of_artists</span><span class="p">:</span>
</pre></div>
</div>
</dd>
<dt><strong>frames</strong> <span class="classifier-delimiter">:</span> <span class="classifier">iterable, int, generator function, or None, optional</span></dt>
<dd><p class="first">Source of data to pass <code class="docutils literal notranslate"><span class="pre">func</span></code> and each frame of the animation</p>
<p>If an iterable, then simply use the values provided. If the
iterable has a length, it will override the <code class="docutils literal notranslate"><span class="pre">save_count</span></code> kwarg.</p>
<p>If an integer, then equivalent to passing <code class="docutils literal notranslate"><span class="pre">range(frames)</span></code></p>
<p>If a generator function, then must have the signature:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">def</span> <span class="nf">gen_function</span><span class="p">()</span> <span class="o">-></span> <span class="n">obj</span><span class="p">:</span>
</pre></div>
</div>
<p>If <code class="docutils literal notranslate"><span class="pre">None</span></code>, then equivalent to passing <code class="docutils literal notranslate"><span class="pre">itertools.count</span></code>.</p>
<p class="last">In all of these cases, the values in <em>frames</em> is simply passed through
to the user-supplied <em>func</em> and thus can be of any type.</p>
</dd>
<dt><strong>init_func</strong> <span class="classifier-delimiter">:</span> <span class="classifier">callable, optional</span></dt>
<dd><p class="first">A function used to draw a clear frame. If not given, the
results of drawing from the first item in the frames sequence
will be used. This function will be called once before the
first frame.</p>
<p>If <code class="docutils literal notranslate"><span class="pre">blit</span> <span class="pre">==</span> <span class="pre">True</span></code>, <code class="docutils literal notranslate"><span class="pre">init_func</span></code> must return an iterable of artists
to be re-drawn.</p>
<p>The required signature is:</p>
<div class="last highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">def</span> <span class="nf">init_func</span><span class="p">()</span> <span class="o">-></span> <span class="n">iterable_of_artists</span><span class="p">:</span>
</pre></div>
</div>
</dd>
<dt><strong>fargs</strong> <span class="classifier-delimiter">:</span> <span class="classifier">tuple or None, optional</span></dt>
<dd><p class="first last">Additional arguments to pass to each call to <em>func</em>.</p>
</dd>
<dt><strong>save_count</strong> <span class="classifier-delimiter">:</span> <span class="classifier">int, optional</span></dt>
<dd><p class="first last">The number of values from <em>frames</em> to cache.</p>
</dd>
<dt><strong>interval</strong> <span class="classifier-delimiter">:</span> <span class="classifier">number, optional</span></dt>
<dd><p class="first last">Delay between frames in milliseconds. Defaults to 200.</p>
</dd>
<dt><strong>repeat_delay</strong> <span class="classifier-delimiter">:</span> <span class="classifier">number, optional</span></dt>
<dd><p class="first last">If the animation in repeated, adds a delay in milliseconds
before repeating the animation. Defaults to <code class="docutils literal notranslate"><span class="pre">None</span></code>.</p>
</dd>
<dt><strong>repeat</strong> <span class="classifier-delimiter">:</span> <span class="classifier">bool, optional</span></dt>
<dd><p class="first last">Controls whether the animation should repeat when the sequence
of frames is completed. Defaults to <code class="docutils literal notranslate"><span class="pre">True</span></code>.</p>
</dd>
<dt><strong>blit</strong> <span class="classifier-delimiter">:</span> <span class="classifier">bool, optional</span></dt>
<dd><p class="first last">Controls whether blitting is used to optimize drawing. Defaults
to <code class="docutils literal notranslate"><span class="pre">False</span></code>.</p>
</dd>
</dl>
</td>
</tr>
</tbody>
</table>
<dl class="method">
<dt id="matplotlib.animation.FuncAnimation.new_frame_seq">
<code class="descname">new_frame_seq</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/matplotlib/animation.html#FuncAnimation.new_frame_seq"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#matplotlib.animation.FuncAnimation.new_frame_seq" title="Permalink to this definition">¶</a></dt>
<dd><p>Creates a new sequence of frame information.</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.animation.FuncAnimation.new_saved_frame_seq">
<code class="descname">new_saved_frame_seq</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/matplotlib/animation.html#FuncAnimation.new_saved_frame_seq"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#matplotlib.animation.FuncAnimation.new_saved_frame_seq" title="Permalink to this definition">¶</a></dt>
<dd><p>Creates a new sequence of saved/cached frame information.</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.animation.FuncAnimation.save">
<code class="descname">save</code><span class="sig-paren">(</span><em>filename</em>, <em>writer=None</em>, <em>fps=None</em>, <em>dpi=None</em>, <em>codec=None</em>, <em>bitrate=None</em>, <em>extra_args=None</em>, <em>metadata=None</em>, <em>extra_anim=None</em>, <em>savefig_kwargs=None</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.animation.FuncAnimation.save" title="Permalink to this definition">¶</a></dt>
<dd><p>Saves a movie file by drawing every frame.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><dl class="first last docutils">
<dt><strong>filename</strong> <span class="classifier-delimiter">:</span> <span class="classifier">str</span></dt>
<dd><p class="first last">The output filename, e.g., <code class="file docutils literal notranslate"><span class="pre">mymovie.mp4</span></code>.</p>
</dd>
<dt><strong>writer</strong> <span class="classifier-delimiter">:</span> <span class="classifier"><a class="reference internal" href="matplotlib.animation.MovieWriter.html#matplotlib.animation.MovieWriter" title="matplotlib.animation.MovieWriter"><code class="xref py py-class docutils literal notranslate"><span class="pre">MovieWriter</span></code></a> or str, optional</span></dt>
<dd><p class="first last">A <a class="reference internal" href="matplotlib.animation.MovieWriter.html#matplotlib.animation.MovieWriter" title="matplotlib.animation.MovieWriter"><code class="xref py py-obj docutils literal notranslate"><span class="pre">MovieWriter</span></code></a> instance to use or a key that identifies a
class to use, such as 'ffmpeg'. If <code class="docutils literal notranslate"><span class="pre">None</span></code>, defaults to
<code class="docutils literal notranslate"><span class="pre">rcParams["animation.writer"]</span></code>.</p>
</dd>
<dt><strong>fps</strong> <span class="classifier-delimiter">:</span> <span class="classifier">number, optional</span></dt>
<dd><p class="first last">Frames per second in the movie. Defaults to <code class="docutils literal notranslate"><span class="pre">None</span></code>, which will use
the animation's specified interval to set the frames per second.</p>
</dd>
<dt><strong>dpi</strong> <span class="classifier-delimiter">:</span> <span class="classifier">number, optional</span></dt>
<dd><p class="first last">Controls the dots per inch for the movie frames. This combined with
the figure's size in inches controls the size of the movie. If
<code class="docutils literal notranslate"><span class="pre">None</span></code>, defaults to <code class="docutils literal notranslate"><span class="pre">rcParams["savefig.dpi"]</span></code>.</p>
</dd>
<dt><strong>codec</strong> <span class="classifier-delimiter">:</span> <span class="classifier">str, optional</span></dt>
<dd><p class="first last">The video codec to be used. Not all codecs are supported
by a given <a class="reference internal" href="matplotlib.animation.MovieWriter.html#matplotlib.animation.MovieWriter" title="matplotlib.animation.MovieWriter"><code class="xref py py-class docutils literal notranslate"><span class="pre">MovieWriter</span></code></a>. If <code class="docutils literal notranslate"><span class="pre">None</span></code>, default to
<code class="docutils literal notranslate"><span class="pre">rcParams["animation.codec"]</span></code>.</p>
</dd>
<dt><strong>bitrate</strong> <span class="classifier-delimiter">:</span> <span class="classifier">number, optional</span></dt>
<dd><p class="first last">Specifies the number of bits used per second in the compressed
movie, in kilobits per second. A higher number means a higher
quality movie, but at the cost of increased file size. If <code class="docutils literal notranslate"><span class="pre">None</span></code>,
defaults to <code class="docutils literal notranslate"><span class="pre">rcParams["animation.bitrate"]</span></code>.</p>
</dd>
<dt><strong>extra_args</strong> <span class="classifier-delimiter">:</span> <span class="classifier">list, optional</span></dt>
<dd><p class="first last">List of extra string arguments to be passed to the underlying movie
utility. If <code class="docutils literal notranslate"><span class="pre">None</span></code>, defaults to <code class="docutils literal notranslate"><span class="pre">rcParams["animation.extra_args"]</span></code>.</p>
</dd>
<dt><strong>metadata</strong> <span class="classifier-delimiter">:</span> <span class="classifier">Dict[str, str], optional</span></dt>
<dd><p class="first last">Dictionary of keys and values for metadata to include in
the output file. Some keys that may be of use include:
title, artist, genre, subject, copyright, srcform, comment.</p>
</dd>
<dt><strong>extra_anim</strong> <span class="classifier-delimiter">:</span> <span class="classifier">list, optional</span></dt>
<dd><p class="first last">Additional <a class="reference internal" href="matplotlib.animation.Animation.html#matplotlib.animation.Animation" title="matplotlib.animation.Animation"><code class="xref py py-obj docutils literal notranslate"><span class="pre">Animation</span></code></a> objects that should be included
in the saved movie file. These need to be from the same
<a class="reference internal" href="matplotlib.figure.Figure.html#matplotlib.figure.Figure" title="matplotlib.figure.Figure"><code class="xref py py-obj docutils literal notranslate"><span class="pre">matplotlib.figure.Figure</span></code></a> instance. Also, animation frames will
just be simply combined, so there should be a 1:1 correspondence
between the frames from the different animations.</p>
</dd>
<dt><strong>savefig_kwargs</strong> <span class="classifier-delimiter">:</span> <span class="classifier">dict, optional</span></dt>
<dd><p class="first last">Is a dictionary containing keyword arguments to be passed
on to the <code class="xref py py-obj docutils literal notranslate"><span class="pre">savefig</span></code> command which is called repeatedly to
save the individual frames.</p>
</dd>
</dl>
</td>
</tr>
</tbody>
</table>
<p class="rubric">Notes</p>
<p>fps, codec, bitrate, extra_args, metadata are used to
construct a <a class="reference internal" href="matplotlib.animation.MovieWriter.html#matplotlib.animation.MovieWriter" title="matplotlib.animation.MovieWriter"><code class="xref py py-class docutils literal notranslate"><span class="pre">MovieWriter</span></code></a> instance and can only be
passed if <code class="xref py py-obj docutils literal notranslate"><span class="pre">writer</span></code> is a string. If they are passed as
non-<a class="reference external" href="https://docs.python.org/3/library/constants.html#None" title="(in Python v3.8)"><code class="xref py py-obj docutils literal notranslate"><span class="pre">None</span></code></a> and <code class="docutils literal notranslate"><span class="pre">writer</span></code> is a <a class="reference internal" href="matplotlib.animation.MovieWriter.html#matplotlib.animation.MovieWriter" title="matplotlib.animation.MovieWriter"><code class="xref py py-class docutils literal notranslate"><span class="pre">MovieWriter</span></code></a>, a
<a class="reference external" href="https://docs.python.org/3/library/exceptions.html#RuntimeError" title="(in Python v3.8)"><code class="xref py py-obj docutils literal notranslate"><span class="pre">RuntimeError</span></code></a> will be raised.</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.animation.FuncAnimation.to_html5_video">
<code class="descname">to_html5_video</code><span class="sig-paren">(</span><em>embed_limit=None</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.animation.FuncAnimation.to_html5_video" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns animation as an HTML5 video tag.</p>
<p>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
<code class="docutils literal notranslate"><span class="pre">interval</span></code> to control the speed, and uses the <code class="docutils literal notranslate"><span class="pre">repeat</span></code>
parameter to decide whether to loop.</p>
</dd></dl>
<dl class="method">
<dt id="matplotlib.animation.FuncAnimation.to_jshtml">
<code class="descname">to_jshtml</code><span class="sig-paren">(</span><em>fps=None</em>, <em>embed_frames=True</em>, <em>default_mode=None</em><span class="sig-paren">)</span><a class="headerlink" href="#matplotlib.animation.FuncAnimation.to_jshtml" title="Permalink to this definition">¶</a></dt>
<dd><p>Generate HTML representation of the animation</p>
</dd></dl>
</dd></dl>
<div class="section" id="examples-using-matplotlib-animation-funcanimation">
<h2>Examples using <code class="docutils literal notranslate"><span class="pre">matplotlib.animation.FuncAnimation</span></code><a class="headerlink" href="#examples-using-matplotlib-animation-funcanimation" title="Permalink to this headline">¶</a></h2>
<div class="sphx-glr-thumbcontainer" tooltip="Animated line plot"><div class="figure" id="id1">
<img alt="../../_images/sphx_glr_simple_anim_thumb.png" src="../../_images/sphx_glr_simple_anim_thumb.png" />
<p class="caption"><span class="caption-text"><a class="reference internal" href="../../gallery/animation/simple_anim.html#sphx-glr-gallery-animation-simple-anim-py"><span class="std std-ref">Animated line plot</span></a></span></p>
</div>
</div><div class="sphx-glr-thumbcontainer" tooltip="This example showcases: - using a generator to drive an animation, - changing axes limits durin..."><div class="figure" id="id2">
<img alt="../../_images/sphx_glr_animate_decay_thumb.png" src="../../_images/sphx_glr_animate_decay_thumb.png" />
<p class="caption"><span class="caption-text"><a class="reference internal" href="../../gallery/animation/animate_decay.html#sphx-glr-gallery-animation-animate-decay-py"><span class="std std-ref">Decay</span></a></span></p>
</div>
</div><div class="sphx-glr-thumbcontainer" tooltip="Use a path patch to draw a bunch of rectangles for an animated histogram."><div class="figure" id="id3">
<img alt="../../_images/sphx_glr_animated_histogram_thumb.png" src="../../_images/sphx_glr_animated_histogram_thumb.png" />
<p class="caption"><span class="caption-text"><a class="reference internal" href="../../gallery/animation/animated_histogram.html#sphx-glr-gallery-animation-animated-histogram-py"><span class="std std-ref">Animated histogram</span></a></span></p>
</div>
</div><div class="sphx-glr-thumbcontainer" tooltip="Emulates an oscilloscope."><div class="figure" id="id4">
<img alt="../../_images/sphx_glr_strip_chart_thumb.png" src="../../_images/sphx_glr_strip_chart_thumb.png" />
<p class="caption"><span class="caption-text"><a class="reference internal" href="../../gallery/animation/strip_chart.html#sphx-glr-gallery-animation-strip-chart-py"><span class="std std-ref">Oscilloscope</span></a></span></p>
</div>
</div><div class="sphx-glr-thumbcontainer" tooltip="This animation displays the posterior estimate updates as it is refitted when new data arrives...."><div class="figure" id="id5">
<img alt="../../_images/sphx_glr_bayes_update_thumb.png" src="../../_images/sphx_glr_bayes_update_thumb.png" />
<p class="caption"><span class="caption-text"><a class="reference internal" href="../../gallery/animation/bayes_update.html#sphx-glr-gallery-animation-bayes-update-py"><span class="std std-ref">The Bayes update</span></a></span></p>
</div>
</div><div class="sphx-glr-thumbcontainer" tooltip="Comparative path demonstration of frequency from a fake signal of a pulsar (mostly known becaus..."><div class="figure" id="id6">
<img alt="../../_images/sphx_glr_unchained_thumb.png" src="../../_images/sphx_glr_unchained_thumb.png" />
<p class="caption"><span class="caption-text"><a class="reference internal" href="../../gallery/animation/unchained.html#sphx-glr-gallery-animation-unchained-py"><span class="std std-ref">MATPLOTLIB UNCHAINED</span></a></span></p>
</div>
</div><div class="sphx-glr-thumbcontainer" tooltip="Animated 3D random walk"><div class="figure" id="id7">
<img alt="../../_images/sphx_glr_random_walk_thumb.png" src="../../_images/sphx_glr_random_walk_thumb.png" />
<p class="caption"><span class="caption-text"><a class="reference internal" href="../../gallery/animation/random_walk.html#sphx-glr-gallery-animation-random-walk-py"><span class="std std-ref">Animated 3D random walk</span></a></span></p>
</div>
</div><div class="sphx-glr-thumbcontainer" tooltip="This animation illustrates the double pendulum problem."><div class="figure" id="id8">
<img alt="../../_images/sphx_glr_double_pendulum_sgskip_thumb.png" src="../../_images/sphx_glr_double_pendulum_sgskip_thumb.png" />
<p class="caption"><span class="caption-text"><a class="reference internal" href="../../gallery/animation/double_pendulum_sgskip.html#sphx-glr-gallery-animation-double-pendulum-sgskip-py"><span class="std std-ref">The double pendulum problem</span></a></span></p>
</div>
</div><div class="sphx-glr-thumbcontainer" tooltip="Simulates rain drops on a surface by animating the scale and opacity of 50 scatter points."><div class="figure" id="id9">
<img alt="../../_images/sphx_glr_rain_thumb.png" src="../../_images/sphx_glr_rain_thumb.png" />
<p class="caption"><span class="caption-text"><a class="reference internal" href="../../gallery/animation/rain.html#sphx-glr-gallery-animation-rain-py"><span class="std std-ref">Rain simulation</span></a></span></p>
</div>
</div><div class="clearer"></div></div>
</div>
</div>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="footer">
© Copyright 2002 - 2012 John Hunter, Darren Dale, Eric Firing, Michael Droettboom and the Matplotlib development team; 2012 - 2018 The Matplotlib development team.
<br />
Last updated on Feb 09, 2020.
Created using
<ahref="http://sphinx-doc.org/">Sphinx</a> 1.8.5.
Doc version v2.2.5-2-ga847ffac5.
</div>
</body>
<footer>
</footer>
</html>