Skip to content

Commit 57e3e4e

Browse files
committed
fix bug in the way dir=-1 arrows are handled at endpoint
1 parent 5d0450b commit 57e3e4e

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

control/freqplot.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1991,7 +1991,6 @@ def _add_arrows_to_line2D(
19911991

19921992
elif dir == -1:
19931993
# Orient the arrow in the other direction on the segment
1994-
n = s.size - 2 if n == s.size - 1 else n # move backward at end
19951994
arrow_tail = (x[n + 1], y[n + 1])
19961995
arrow_head = (np.mean(x[n:n + 2]), np.mean(y[n:n + 2]))
19971996

examples/pvtol-nested.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@
6161
Hi = ct.parallel(ct.feedback(Ci, Pi), -m * g *ct.feedback(Ci * Pi, 1))
6262

6363
plt.figure(4)
64-
plt.clf()
65-
plt.subplot(221)
6664
ct.bode_plot(Hi)
6765

6866
# Now design the lateral control system
@@ -129,7 +127,7 @@
129127
#
130128
plt.figure(7)
131129
plt.clf()
132-
ct.nyquist_plot(L, (0.0001, 1000))
130+
ct.nyquist_plot(L)
133131

134132
# Add a box in the region we are going to expand
135133
plt.plot([-2, -2, 1, 1, -2], [-4, 4, 4, -4, -4], 'r-')

0 commit comments

Comments
 (0)