From 3b90050dc2ce0ec15099e17718b28b4d6274535a Mon Sep 17 00:00:00 2001 From: Richard Murray Date: Sun, 5 Sep 2021 22:41:07 -0700 Subject: [PATCH] FIX: plot Nyquist frequency correctly in Bode plot in Hz --- control/freqplot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/control/freqplot.py b/control/freqplot.py index 315e00f2c..86b548b38 100644 --- a/control/freqplot.py +++ b/control/freqplot.py @@ -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))) 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