animation example code: double_pendulum_animated.py — Matplotlib 2.0.2 documentation