Note
Click here 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'
Total running time of the script: ( 0 minutes 0.000 seconds)