electricpy.bode.bode

electricpy.bode.bode(system, mn=0.001, mx=1000, npts=100, title='', xlim=False, ylim=False, sv=False, disp3db=False, lowcut=None, magnitude=True, angle=True, freqaxis='rad')[source]

System Bode Plotting Function.

A simple function to generate the Bode Plot for magnitude and frequency given a transfer function system.

Parameters:
system : transfer function object

The Transfer Function; can be provided as the following: - 1 (instance of lti) - 2 (num, den) - 3 (zeros, poles, gain) - 4 (A, B, C, D)

mn : float, optional

The minimum frequency to be calculated for. default=0.01.

mx : float, optional

The maximum frequency to be calculated for. default=1000.

npts : float, optional

The number of points over which to calculate the system. default=100.

title : string, optional

Additional string to be added to plot titles; default=””.

xlim : list of float, optional

Limit in x-axis for graph plot. Accepts tuple of: (xmin, xmax). Default is False.

ylim : list of float, optional

Limit in y-axis for graph plot. Accepts tuple of: (ymin, ymax). Default is False.

sv : bool, optional

Save the plots as PNG files. Default is False.

disp3db : bool, optional

Control argument to enable the display of the 3dB line, default=False.

lowcut : float, optional

An additional marking line that can be plotted, default=None

magnitude : bool, optional

Control argument to enable plotting of magnitude, default=True

angle : bool, optional

Control argument to enable plotting of angle, default=True

freqaxis : string, optional

Control argument to specify the freqency axis in degrees or radians, default is radians (rad)