@@ -167,7 +167,7 @@ def bode_plot(
167167 string (see :func:`~matplotlib.pyplot.legend`).
168168 legend_loc : int or str, optional
169169 Include a legend in the given location. Default is 'center right',
170- with no legend for a single response. Use False to supress legend.
170+ with no legend for a single response. Use False to suppress legend.
171171 margins_method : str, optional
172172 Method to use in computing margins (see :func:`stability_margins`).
173173 omega_limits : array_like of two values
@@ -1582,8 +1582,8 @@ def nyquist_plot(
15821582 Label every nth frequency on the plot. If not specified, no labels
15831583 are generated.
15841584 legend_loc : int or str, optional
1585- Include a legend in the given location. Default is 'center right',
1586- with no legend for a single response. Use False to supress legend.
1585+ Include a legend in the given location. Default is 'upper right',
1586+ with no legend for a single response. Use False to suppress legend.
15871587 max_curve_magnitude : float, optional
15881588 Restrict the maximum magnitude of the Nyquist plot to this value.
15891589 Portions of the Nyquist plot whose magnitude is restricted are
@@ -2137,7 +2137,7 @@ def gangof4_response(
21372137def gangof4_plot (
21382138 * args , omega = None , omega_limits = None , omega_num = None ,
21392139 Hz = False , ** kwargs ):
2140- """Plot the response of the "Gange of 4" transfer functions for a system.
2140+ """Plot the response of the "Gang of 4" transfer functions for a system.
21412141
21422142 Plots a 2x2 frequency response for the "Gang of 4" sensitivity
21432143 functions [T, PS; CS, S]. Can be called in one of two ways:
@@ -2168,9 +2168,20 @@ def gangof4_plot(
21682168
21692169 Returns
21702170 -------
2171- response : :class:`~control.FrequencyResponseData`
2172- Frequency response with inputs 'r' and 'd' and outputs 'y', and 'u'
2173- representing the 2x2 matrix of transfer functions in the Gang of 4.
2171+ cplt : :class:`ControlPlot` object
2172+ Object containing the data that were plotted:
2173+
2174+ * cplt.lines: 2x2 array of :class:`matplotlib.lines.Line2D`
2175+ objects for each line in the plot. The value of each array
2176+ entry is a list of Line2D objects in that subplot.
2177+
2178+ * cplt.axes: 2D array of :class:`matplotlib.axes.Axes` for the plot.
2179+
2180+ * cplt.figure: :class:`matplotlib.figure.Figure` containing the plot.
2181+
2182+ * cplt.legend: legend object(s) contained in the plot
2183+
2184+ See :class:`ControlPlot` for more detailed information.
21742185
21752186 """
21762187 if len (args ) == 1 and isinstance (arg , FrequencyResponseData ):
@@ -2332,7 +2343,7 @@ def singular_values_plot(
23322343 system.
23332344 legend_loc : int or str, optional
23342345 Include a legend in the given location. Default is 'center right',
2335- with no legend for a single response. Use False to supress legend.
2346+ with no legend for a single response. Use False to suppress legend.
23362347 omega_limits : array_like of two values
23372348 Set limits for plotted frequency range. If Hz=True the limits are
23382349 in Hz otherwise in rad/s. Specifying ``omega`` as a list of two
0 commit comments