Note
Go to the end to download the full example code.
Animate trajectories
traja allows animating trajectories.
import traja
df = traja.generate(1000, seed=0)
Plot a animation of trajectory
An animation is generated using animate().
anim = traja.plotting.animate(df) # save=True saves to 'trajectory.mp4'