FIX: plot Nyquist frequency correctly in Bode plot in Hz · python-control/python-control@3b90050

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)))