

.. _sphx_glr_gallery_animation:

.. _animation_examples:

.. _animation-examples-index:

Animation
=========



.. raw:: html

    <div class="sphx-glr-thumbnails">

.. thumbnail-parent-div-open

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example showcases:">

.. only:: html

  .. image:: /gallery/animation/images/thumb/sphx_glr_animate_decay_thumb.png
    :alt:

  :ref:`sphx_glr_gallery_animation_animate_decay.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Decay</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Use histogram&#x27;s BarContainer to draw a bunch of rectangles for an animated histogram.">

.. only:: html

  .. image:: /gallery/animation/images/thumb/sphx_glr_animated_histogram_thumb.png
    :alt:

  :ref:`sphx_glr_gallery_animation_animated_histogram.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Animated histogram</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Generating an animation by calling pause between plotting commands.">

.. only:: html

  .. image:: /gallery/animation/images/thumb/sphx_glr_animation_demo_thumb.png
    :alt:

  :ref:`sphx_glr_gallery_animation_animation_demo.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">pyplot animation</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This animation displays the posterior estimate updates as it is refitted when new data arrives. The vertical line represents the theoretical value to which the plotted distribution should converge.">

.. only:: html

  .. image:: /gallery/animation/images/thumb/sphx_glr_bayes_update_thumb.png
    :alt:

  :ref:`sphx_glr_gallery_animation_bayes_update.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">The Bayes update</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This animation illustrates the double pendulum problem.">

.. only:: html

  .. image:: /gallery/animation/images/thumb/sphx_glr_double_pendulum_thumb.png
    :alt:

  :ref:`sphx_glr_gallery_animation_double_pendulum.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">The double pendulum problem</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Output generated via matplotlib.animation.Animation.to_jshtml.">

.. only:: html

  .. image:: /gallery/animation/images/thumb/sphx_glr_dynamic_image_thumb.png
    :alt:

  :ref:`sphx_glr_gallery_animation_dynamic_image.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Animated image using a precomputed list of images</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Use a MovieWriter directly to grab individual frames and write them to a file.  This avoids any event loop integration, and thus works even with the Agg backend.  This is not recommended for use in an interactive setting.">

.. only:: html

  .. image:: /gallery/animation/images/thumb/sphx_glr_frame_grabbing_sgskip_thumb.png
    :alt:

  :ref:`sphx_glr_gallery_animation_frame_grabbing_sgskip.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Frame grabbing</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example showcases:">

.. only:: html

  .. image:: /gallery/animation/images/thumb/sphx_glr_multiple_axes_thumb.png
    :alt:

  :ref:`sphx_glr_gallery_animation_multiple_axes.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Multiple Axes animation</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example showcases:">

.. only:: html

  .. image:: /gallery/animation/images/thumb/sphx_glr_pause_resume_thumb.png
    :alt:

  :ref:`sphx_glr_gallery_animation_pause_resume.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Pause and resume an animation</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Simulates rain drops on a surface by animating the scale and opacity of 50 scatter points.">

.. only:: html

  .. image:: /gallery/animation/images/thumb/sphx_glr_rain_thumb.png
    :alt:

  :ref:`sphx_glr_gallery_animation_rain.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Rain simulation</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Output generated via matplotlib.animation.Animation.to_jshtml.">

.. only:: html

  .. image:: /gallery/animation/images/thumb/sphx_glr_random_walk_thumb.png
    :alt:

  :ref:`sphx_glr_gallery_animation_random_walk.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Animated 3D random walk</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Output generated via matplotlib.animation.Animation.to_jshtml.">

.. only:: html

  .. image:: /gallery/animation/images/thumb/sphx_glr_simple_anim_thumb.png
    :alt:

  :ref:`sphx_glr_gallery_animation_simple_anim.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Animated line plot</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Output generated via matplotlib.animation.Animation.to_jshtml.">

.. only:: html

  .. image:: /gallery/animation/images/thumb/sphx_glr_simple_scatter_thumb.png
    :alt:

  :ref:`sphx_glr_gallery_animation_simple_scatter.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Animated scatter saved as GIF</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Emulates an oscilloscope.">

.. only:: html

  .. image:: /gallery/animation/images/thumb/sphx_glr_strip_chart_thumb.png
    :alt:

  :ref:`sphx_glr_gallery_animation_strip_chart.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Oscilloscope</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Comparative path demonstration of frequency from a fake signal of a pulsar (mostly known because of the cover for Joy Division&#x27;s Unknown Pleasures).">

.. only:: html

  .. image:: /gallery/animation/images/thumb/sphx_glr_unchained_thumb.png
    :alt:

  :ref:`sphx_glr_gallery_animation_unchained.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Matplotlib unchained</div>
    </div>


.. thumbnail-parent-div-close

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /gallery/animation/animate_decay
   /gallery/animation/animated_histogram
   /gallery/animation/animation_demo
   /gallery/animation/bayes_update
   /gallery/animation/double_pendulum
   /gallery/animation/dynamic_image
   /gallery/animation/frame_grabbing_sgskip
   /gallery/animation/multiple_axes
   /gallery/animation/pause_resume
   /gallery/animation/rain
   /gallery/animation/random_walk
   /gallery/animation/simple_anim
   /gallery/animation/simple_scatter
   /gallery/animation/strip_chart
   /gallery/animation/unchained

