{ } Raw JSON

bundles / scipy latest / scipy / signal / _ltisys / lti / bode

function

scipy.signal._ltisys:lti.bode

source: /scipy/signal/_ltisys.py :256

Signature

def   bode ( self w = None n = 100 )

Summary

Calculate Bode magnitude and phase data of a continuous-time system.

Extended Summary

Returns a 3-tuple containing arrays of frequencies [rad/s], magnitude [dB] and phase [deg]. See bode for details.

Examples

from scipy import signal
import matplotlib.pyplot as plt
sys = signal.TransferFunction([1], [1, 1])
w, mag, phase = sys.bode()
plt.figure()
plt.semilogx(w, mag)    # Bode magnitude plot
plt.figure()
plt.semilogx(w, phase)  # Bode phase plot
plt.show()
fig-acc41405c46ff0dc.png
fig-c41b97a33f9a2983.png

Aliases

  • scipy.signal.lti.bode