@@ -147,8 +147,9 @@ 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: str, optional
151- Frequency label (defaults to "rad/sec" or "Hertz")
150+ freq_label, magnitude_label, phase_label : str, optional
151+ Labels to use for the frequency, magnitude, and phase axes.
152+ Defaults are set by `config.defaults['freqplot.<keyword>']`.
152153 grid : bool, optional
153154 If True, plot grid lines on gain and phase plots. Default is set by
154155 `config.defaults['freqplot.grid']`.
@@ -183,21 +184,36 @@ def bode_plot(
183184 Number of samples to use for the frequeny range. Defaults to
184185 config.defaults['freqplot.number_of_samples']. Ignored if data is
185186 not a list of systems.
187+ overlay_inputs, overlay_outputs : bool, optional
188+ If set to True, combine input and/or output signals onto a single
189+ plot and use line colors, labels, and a legend to distinguish them.
186190 phase_label : str, optional
187191 Label to use for phase axis. Defaults to "Phase [rad]".
188192 plot : bool, optional
189193 (legacy) If given, `bode_plot` returns the legacy return values
190194 of magnitude, phase, and frequency. If False, just return the
191195 values with no plot.
196+ plot_magnitude, plot_phase : bool, optional
197+ If set to `False`, don't plot the magnitude or phase, respectively.
192198 rcParams : dict
193199 Override the default parameters used for generating plots.
194200 Default is set by config.default['ctrlplot.rcParams'].
201+ share_frequency, share_magnitude, share_phase : str or bool, optional
202+ Determine whether and how axis limits are shared between the
203+ indicated variables. Can be set set to 'row' to share across all
204+ subplots in a row, 'col' to set across all subplots in a column, or
205+ `False` to allow independent limits.
195206 show_legend : bool, optional
196207 Force legend to be shown if ``True`` or hidden if ``False``. If
197208 ``None``, then show legend when there is more than one line on an
198209 axis or ``legend_loc`` or ``legend_map`` has been specified.
199210 title : str, optional
200211 Set the title of the plot. Defaults to plot type and system name(s).
212+ title_frame : str, optional
213+ Set the frame of reference used to center the plot title. If set to
214+ 'axes' (default), the horizontal position of the title will
215+ centered relative to the axes. If set to `figure`, it will be
216+ centered with respect to the figure (faster execution).
201217 wrap_phase : bool or float
202218 If wrap_phase is `False` (default), then the phase will be unwrapped
203219 so that it is continuously increasing or decreasing. If wrap_phase is
@@ -1143,7 +1159,7 @@ def plot(self, *args, **kwargs):
11431159
11441160
11451161def nyquist_response (
1146- sysdata , omega = None , plot = None , omega_limits = None , omega_num = None ,
1162+ sysdata , omega = None , omega_limits = None , omega_num = None ,
11471163 return_contour = False , warn_encirclements = True , warn_nyquist = True ,
11481164 _check_kwargs = True , ** kwargs ):
11491165 """Nyquist response for a system.
@@ -1221,8 +1237,7 @@ def nyquist_response(
12211237 right of stable poles and the left of unstable poles. If a pole is
12221238 exactly on the imaginary axis, the `indent_direction` parameter can be
12231239 used to set the direction of indentation. Setting `indent_direction`
1224- to `none` will turn off indentation. If `return_contour` is True, the
1225- exact contour used for evaluation is returned.
1240+ to `none` will turn off indentation.
12261241
12271242 3. For those portions of the Nyquist plot in which the contour is
12281243 indented to avoid poles, resuling in a scaling of the Nyquist plot,
@@ -1623,7 +1638,7 @@ def nyquist_plot(
16231638 determined by config.defaults['nyquist.mirror_style'].
16241639 rcParams : dict
16251640 Override the default parameters used for generating plots.
1626- Default is set by config.default['freqplot .rcParams'].
1641+ Default is set by config.default['ctrlplot .rcParams'].
16271642 return_contour : bool, optional
16281643 (legacy) If 'True', return the encirclement count and Nyquist
16291644 contour used to generate the Nyquist plot.
@@ -1640,6 +1655,11 @@ def nyquist_plot(
16401655 4 and can be set using config.defaults['nyquist.start_marker_size'].
16411656 title : str, optional
16421657 Set the title of the plot. Defaults to plot type and system name(s).
1658+ title_frame : str, optional
1659+ Set the frame of reference used to center the plot title. If set to
1660+ 'axes' (default), the horizontal position of the title will
1661+ centered relative to the axes. If set to `figure`, it will be
1662+ centered with respect to the figure (faster execution).
16431663 warn_nyquist : bool, optional
16441664 If set to 'False', turn off warnings about frequencies above Nyquist.
16451665 warn_encirclements : bool, optional
@@ -2206,6 +2226,7 @@ def gangof4_plot(
22062226 * args , omega = omega , omega_limits = omega_limits ,
22072227 omega_num = omega_num , Hz = Hz ).plot (** kwargs )
22082228
2229+
22092230#
22102231# Singular values plot
22112232#
@@ -2339,6 +2360,8 @@ def singular_values_plot(
23392360 The matplotlib axes to draw the figure on. If not specified and
23402361 the current figure has a single axes, that axes is used.
23412362 Otherwise, a new figure is created.
2363+ color : matplotlib color spec
2364+ Color to use for singular values (or None for matplotlib default).
23422365 grid : bool
23432366 If True, plot grid lines on gain and phase plots. Default is set by
23442367 `config.defaults['freqplot.grid']`.
@@ -2370,6 +2393,11 @@ def singular_values_plot(
23702393 axis or ``legend_loc`` or ``legend_map`` has been specified.
23712394 title : str, optional
23722395 Set the title of the plot. Defaults to plot type and system name(s).
2396+ title_frame : str, optional
2397+ Set the frame of reference used to center the plot title. If set to
2398+ 'axes' (default), the horizontal position of the title will
2399+ centered relative to the axes. If set to `figure`, it will be
2400+ centered with respect to the figure (faster execution).
23732401
23742402 See Also
23752403 --------
0 commit comments