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

Skip to content

Commit b111729

Browse files
author
Jirka Hladky
committed
Fixed flake8 flagged problems
1 parent 946a561 commit b111729

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

examples/animation/double_pendulum.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
M1 = 1.0 # mass of pendulum 1 in kg
2323
M2 = 1.0 # mass of pendulum 2 in kg
2424
t_stop = 50 # how many seconds to simulate
25-
history_len = 500 #how many trace points to display (trail history)
25+
history_len = 500 # how many trajectory points to display
2626

2727

2828
def derivs(state, t):
@@ -73,7 +73,9 @@ def derivs(state, t):
7373
y2 = -L2*cos(y[:, 2]) + y1
7474

7575
fig = plt.figure(figsize=(5, 4))
76-
ax = fig.add_subplot(autoscale_on=False, xlim=(-(L1+L2), (L1+L2)), ylim=(-(L1+L2), 1))
76+
ax = fig.add_subplot(autoscale_on=False,
77+
xlim=(-(L1+L2), (L1+L2)),
78+
ylim=(-(L1+L2), 1.))
7779
ax.set_aspect('equal')
7880
ax.grid()
7981

0 commit comments

Comments
 (0)