Skip to content

Commit 5ab0a1c

Browse files
murrayrmbnavigator
authored andcommitted
FIX: plot Nyquist frequency correctly in Bode plot in Hz
1 parent 18976c1 commit 5ab0a1c

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy