Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6910b92

Browse files
committed
Merge pull request #5426 from WarrenWeckesser/pendulum-aspect-equal
MNT: examples: Set the aspect ratio to "equal" in the double pendulum animation.
2 parents 781605a + 428adaf commit 6910b92

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/animation/double_pendulum_animated.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ def derivs(state, t):
6161

6262
fig = plt.figure()
6363
ax = fig.add_subplot(111, autoscale_on=False, xlim=(-2, 2), ylim=(-2, 2))
64+
ax.set_aspect('equal')
6465
ax.grid()
6566

6667
line, = ax.plot([], [], 'o-', lw=2)

0 commit comments

Comments
 (0)