Skip to content

Commit 3b90050

Browse files
committed
FIX: plot Nyquist frequency correctly in Bode plot in Hz
1 parent 18976c1 commit 3b90050

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

control/freqplot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,8 @@ def bode_plot(syslist, omega=None,
329329
# if this extra nyquist lime is is plotted in a single plot
330330
# command then line order is preserved when
331331
# creating a legend eg. legend(('sys1', 'sys2'))
332-
omega_nyq_line = np.array((np.nan, nyquistfrq, nyquistfrq))
332+
omega_nyq_line = np.array(
333+
(np.nan, nyquistfrq_plot, nyquistfrq_plot))
333334
omega_plot = np.hstack((omega_plot, omega_nyq_line))
334335
mag_nyq_line = np.array((
335336
np.nan, 0.7*min(mag_plot), 1.3*max(mag_plot)))

0 commit comments

Comments
 (0)