@@ -147,6 +147,8 @@ def bode_plot(
147147 figure with the correct number and shape of axes, a new figure is
148148 created. The shape of the array must match the shape of the
149149 plotted data.
150+ freq_label, magnitude_label, phase_label : str, optional
151+ Labels to use for the frequency, magnitude, and phase axes.
150152 grid : bool, optional
151153 If True, plot grid lines on gain and phase plots. Default is set by
152154 `config.defaults['freqplot.grid']`.
@@ -179,19 +181,34 @@ def bode_plot(
179181 Number of samples to use for the frequeny range. Defaults to
180182 config.defaults['freqplot.number_of_samples']. Ignored if data is
181183 not a list of systems.
184+ overlay_inputs, overlay_outputs : bool, optional
185+ If set to True, combine input and/or output signals onto a single
186+ plot and use line colors, labels, and a legend to distinguish them.
182187 plot : bool, optional
183188 (legacy) If given, `bode_plot` returns the legacy return values
184189 of magnitude, phase, and frequency. If False, just return the
185190 values with no plot.
191+ plot_magnitude, plot_phase : bool, optional
192+ If set to `False`, don't plot the magnitude or phase, respectively.
186193 rcParams : dict
187194 Override the default parameters used for generating plots.
188195 Default is set by config.default['ctrlplot.rcParams'].
196+ share_frequency, share_magnitude, share_phase : str or bool, optional
197+ Determine whether and how axis limits are shared between the
198+ indicated variables. Can be set set to 'row' to share across all
199+ subplots in a row, 'col' to set across all subplots in a column, or
200+ `False` to allow independent limits.
189201 show_legend : bool, optional
190202 Force legend to be shown if ``True`` or hidden if ``False``. If
191203 ``None``, then show legend when there is more than one line on an
192204 axis or ``legend_loc`` or ``legend_map`` has been specified.
193205 title : str, optional
194206 Set the title of the plot. Defaults to plot type and system name(s).
207+ title_frame : str, optional
208+ Set the frame of reference used to center the plot title. If set to
209+ 'axes' (default), the horizontal position of the title will
210+ centered relative to the axes. If set to `figure`, it will be
211+ centered with respect to the figure (faster execution).
195212 wrap_phase : bool or float
196213 If wrap_phase is `False` (default), then the phase will be unwrapped
197214 so that it is continuously increasing or decreasing. If wrap_phase is
@@ -1137,7 +1154,7 @@ def plot(self, *args, **kwargs):
11371154
11381155
11391156def nyquist_response (
1140- sysdata , omega = None , plot = None , omega_limits = None , omega_num = None ,
1157+ sysdata , omega = None , omega_limits = None , omega_num = None ,
11411158 return_contour = False , warn_encirclements = True , warn_nyquist = True ,
11421159 _check_kwargs = True , ** kwargs ):
11431160 """Nyquist response for a system.
@@ -1215,8 +1232,7 @@ def nyquist_response(
12151232 right of stable poles and the left of unstable poles. If a pole is
12161233 exactly on the imaginary axis, the `indent_direction` parameter can be
12171234 used to set the direction of indentation. Setting `indent_direction`
1218- to `none` will turn off indentation. If `return_contour` is True, the
1219- exact contour used for evaluation is returned.
1235+ to `none` will turn off indentation.
12201236
12211237 3. For those portions of the Nyquist plot in which the contour is
12221238 indented to avoid poles, resuling in a scaling of the Nyquist plot,
@@ -1617,7 +1633,7 @@ def nyquist_plot(
16171633 determined by config.defaults['nyquist.mirror_style'].
16181634 rcParams : dict
16191635 Override the default parameters used for generating plots.
1620- Default is set by config.default['freqplot .rcParams'].
1636+ Default is set by config.default['ctrlplot .rcParams'].
16211637 return_contour : bool, optional
16221638 (legacy) If 'True', return the encirclement count and Nyquist
16231639 contour used to generate the Nyquist plot.
@@ -1634,6 +1650,11 @@ def nyquist_plot(
16341650 4 and can be set using config.defaults['nyquist.start_marker_size'].
16351651 title : str, optional
16361652 Set the title of the plot. Defaults to plot type and system name(s).
1653+ title_frame : str, optional
1654+ Set the frame of reference used to center the plot title. If set to
1655+ 'axes' (default), the horizontal position of the title will
1656+ centered relative to the axes. If set to `figure`, it will be
1657+ centered with respect to the figure (faster execution).
16371658 warn_nyquist : bool, optional
16381659 If set to 'False', turn off warnings about frequencies above Nyquist.
16391660 warn_encirclements : bool, optional
@@ -2200,6 +2221,7 @@ def gangof4_plot(
22002221 * args , omega = omega , omega_limits = omega_limits ,
22012222 omega_num = omega_num , Hz = Hz ).plot (** kwargs )
22022223
2224+
22032225#
22042226# Singular values plot
22052227#
@@ -2333,6 +2355,8 @@ def singular_values_plot(
23332355 The matplotlib axes to draw the figure on. If not specified and
23342356 the current figure has a single axes, that axes is used.
23352357 Otherwise, a new figure is created.
2358+ color : matplotlib color spec
2359+ Color to use for singular values (or None for matplotlib default).
23362360 grid : bool
23372361 If True, plot grid lines on gain and phase plots. Default is set by
23382362 `config.defaults['freqplot.grid']`.
@@ -2364,6 +2388,11 @@ def singular_values_plot(
23642388 axis or ``legend_loc`` or ``legend_map`` has been specified.
23652389 title : str, optional
23662390 Set the title of the plot. Defaults to plot type and system name(s).
2391+ title_frame : str, optional
2392+ Set the frame of reference used to center the plot title. If set to
2393+ 'axes' (default), the horizontal position of the title will
2394+ centered relative to the axes. If set to `figure`, it will be
2395+ centered with respect to the figure (faster execution).
23672396
23682397 See Also
23692398 --------
0 commit comments