From 428adaf1223291f29708888de3cbad0816dd4953 Mon Sep 17 00:00:00 2001 From: Warren Weckesser Date: Fri, 6 Nov 2015 19:03:45 -0500 Subject: [PATCH] MNT: examples: Set the aspect ratio to "equal" in the double pendulum animation. Otherwise the apparent length of the pendulum changes with the angle. --- examples/animation/double_pendulum_animated.py | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/animation/double_pendulum_animated.py b/examples/animation/double_pendulum_animated.py index 057efbd0e589..3b4b48204edb 100644 --- a/examples/animation/double_pendulum_animated.py +++ b/examples/animation/double_pendulum_animated.py @@ -61,6 +61,7 @@ def derivs(state, t): fig = plt.figure() ax = fig.add_subplot(111, autoscale_on=False, xlim=(-2, 2), ylim=(-2, 2)) +ax.set_aspect('equal') ax.grid() line, = ax.plot([], [], 'o-', lw=2)