control.gangof4_plot
- control.gangof4_plot(*args, omega=None, omega_limits=None, omega_num=None, Hz=False, **kwargs)[source]
Plot the response of the “Gang of 4” transfer functions for a system.
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
response (FrequencyPlotData) – Gang of 4 frequency response from gangof4_response.
P (LTI) – Linear input/output systems (process and control).
C (LTI) – Linear input/output systems (process and control).
omega (array) – Range of frequencies (list or bounds) in rad/sec.
omega_limits (array_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 providingomega_limits
. Ignored if data is not a list of systems.omega_num (int) – Number of samples to use for the frequeny range. Defaults to config.defaults[‘freqplot.number_of_samples’]. Ignored if data is not a list of systems.
Hz (bool, optional) – If True, when computing frequency limits automatically set limits to full decades in Hz instead of rad/s.
- Returns
cplt –
Object containing the data that were plotted:
cplt.lines: 2x2 array of
matplotlib.lines.Line2D
objects for each line in the plot. The value of each array entry is a list of Line2D objects in that subplot.cplt.axes: 2D array of
matplotlib.axes.Axes
for the plot.cplt.figure:
matplotlib.figure.Figure
containing the plot.cplt.legend: legend object(s) contained in the plot
See
ControlPlot
for more detailed information.- Return type
ControlPlot
object