A simple damped pendulum in Python. Tested with the Anaconda distribution of Python.
animation.mp4
To run, use:
$ python pendulum.py
An animation can be created by changing the save
variable to True
. Since the matplotlib animation seems to be locked to a single thread, saving the animation takes a while. Otherwise, the animation itself is very fast.