control.gangof4_plot

control.gangof4_plot(response)     gangof4_plot(P, C, omega)[source]

Plot response of “Gang of 4” transfer functions.

Plots a 2x2 frequency response for the “Gang of 4” sensitivity functions [T, PS; CS, S]. Can be called in one of two ways:

gangof4_plot(response[, …]) gangof4_plot(P, C[, …])

Parameters
responseFrequencyPlotData

Gang of 4 frequency response from gangof4_response.

P, CLTI

Linear input/output systems (process and control).

omegaarray

Range of frequencies (list or bounds) in rad/sec.

omega_limitsarray_like of two values

Set limits for plotted frequency range. If Hz=True the limits are in Hz otherwise in rad/s. Specifying omega as a list of two elements is equivalent to providing omega_limits. Ignored if data is not a list of systems.

omega_numint

Number of samples to use for the frequency range. Defaults to config.defaults['freqplot.number_of_samples']. Ignored if data is not a list of systems.

Hzbool, optional

If True, when computing frequency limits automatically set limits to full decades in Hz instead of rad/s.

Returns
cpltControlPlot object

Object containing the data that were plotted. See ControlPlot for more detailed information.

cplt.lines2x2 array of matplotlib.lines.Line2D

Array containing information on each line in the plot. The value of each array entry is a list of Line2D objects in that subplot.

cplt.axes2D array of matplotlib.axes.Axes

Axes for each subplot.

cplt.figurematplotlib.figure.Figure

Figure containing the plot.

cplt.legend2D array of matplotlib.legend.Legend

Legend object(s) contained in the plot.