Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6910b92

Browse filesBrowse 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
Copy full SHA for 6910b92

File tree

Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed

‎examples/animation/double_pendulum_animated.py

Copy file name to clipboardExpand all lines: examples/animation/double_pendulum_animated.py
+1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.