Skip to content

Commit ffd7b5f

Browse files
committed
changed color of root locus pole markers to black instead of randomly-changing colors in sisotool
1 parent c4bd384 commit ffd7b5f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

control/rlocus.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def root_locus(sys, kvect=None, xlim=None, ylim=None,
180180
fig.axes[1].plot(
181181
[root.real for root in start_mat],
182182
[root.imag for root in start_mat],
183-
marker='s', markersize=8, zorder=20, label='gain_point')
183+
marker='s', markersize=6, zorder=20, color='k', label='gain_point')
184184
s = start_mat[0][0]
185185
if isdtime(sys, strict=True):
186186
zeta = -np.cos(np.angle(np.log(s)))
@@ -623,7 +623,7 @@ def _RLFeedbackClicksPoint(event, sys, fig, ax_rlocus, sisotool=False):
623623
ax_rlocus.plot(
624624
[root.real for root in mymat],
625625
[root.imag for root in mymat],
626-
marker='s', markersize=8, zorder=20, label='gain_point')
626+
marker='s', markersize=6, zorder=20, label='gain_point', color='k')
627627
else:
628628
ax_rlocus.plot(s.real, s.imag, 'k.', marker='s', markersize=8,
629629
zorder=20, label='gain_point')
@@ -769,7 +769,7 @@ def _default_wn(xloc, yloc, max_lines=7):
769769
770770
"""
771771
sep = xloc[1]-xloc[0] # separation between x-ticks
772-
772+
773773
# Decide whether to use the x or y axis for determining wn
774774
if yloc[-1] / sep > max_lines*10:
775775
# y-axis scale >> x-axis scale

0 commit comments

Comments
 (0)