

.. _sphx_glr_users_explain_animations:

===========================
Animations using Matplotlib
===========================

Based on its plotting functionality, Matplotlib also provides an interface to
generate animations using the `~matplotlib.animation` module. An
animation is a sequence of frames where each frame corresponds to a plot on a
`~matplotlib.figure.Figure`. This tutorial covers a general guideline on
how to create such animations and the different options available.



.. raw:: html

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

.. thumbnail-parent-div-open

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Based on its plotting functionality, Matplotlib also provides an interface to generate animations using the animation module. An animation is a sequence of frames where each frame corresponds to a plot on a Figure. This tutorial covers a general guideline on how to create such animations and the different options available.  More information is available in the API description: animation">

.. only:: html

  .. image:: /users/explain/animations/images/thumb/sphx_glr_animations_thumb.png
    :alt:

  :ref:`sphx_glr_users_explain_animations_animations.py`

.. raw:: html

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


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Blitting is a standard technique in raster graphics that, in the context of Matplotlib, can be used to (drastically) improve performance of interactive figures. For example, the .animation and .widgets modules use blitting internally. Here, we demonstrate how to implement your own blitting, outside of these classes.">

.. only:: html

  .. image:: /users/explain/animations/images/thumb/sphx_glr_blitting_thumb.png
    :alt:

  :ref:`sphx_glr_users_explain_animations_blitting.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Faster rendering by using blitting</div>
    </div>


.. thumbnail-parent-div-close

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /users/explain/animations/animations
   /users/explain/animations/blitting

