.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "gallery/animate.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_gallery_animate.py: Animate trajectories ------------------------------- traja allows animating trajectories. .. GENERATED FROM PYTHON SOURCE LINES 6-10 .. code-block:: Python import traja df = traja.generate(1000, seed=0) .. GENERATED FROM PYTHON SOURCE LINES 11-14 Plot a animation of trajectory ============================== An animation is generated using :func:`~traja.plotting.animate`. .. GENERATED FROM PYTHON SOURCE LINES 14-17 .. code-block:: Python anim = traja.plotting.animate(df) # save=True saves to 'trajectory.mp4' .. GENERATED FROM PYTHON SOURCE LINES 18-20 .. raw:: html .. _sphx_glr_download_gallery_animate.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: animate.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: animate.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: animate.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_