Skip to content

Commit

Permalink
FIX: plot Nyquist frequency correctly in Bode plot in Hz
Browse files Browse the repository at this point in the history
  • Loading branch information
murrayrm authored and bnavigator committed Sep 6, 2021
1 parent 18976c1 commit 5ab0a1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion control/freqplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,8 @@ def bode_plot(syslist, omega=None,
# if this extra nyquist lime is is plotted in a single plot
# command then line order is preserved when
# creating a legend eg. legend(('sys1', 'sys2'))
omega_nyq_line = np.array((np.nan, nyquistfrq, nyquistfrq))
omega_nyq_line = np.array(
(np.nan, nyquistfrq_plot, nyquistfrq_plot))
omega_plot = np.hstack((omega_plot, omega_nyq_line))
mag_nyq_line = np.array((
np.nan, 0.7*min(mag_plot), 1.3*max(mag_plot)))
Expand Down

0 comments on commit 5ab0a1c

Please sign in to comment.