diff --git a/control/ctrlplot.py b/control/ctrlplot.py index 50b2751d8..25652bd63 100644 --- a/control/ctrlplot.py +++ b/control/ctrlplot.py @@ -195,12 +195,8 @@ def set_plot_title(self, title, frame='axes'): ---------- title : str Title text. - fig : Figure, optional - Matplotlib figure. Defaults to current figure. frame : str, optional Coordinate frame for centering: 'axes' (default) or 'figure'. - **kwargs : `matplotlib.pyplot.suptitle` keywords, optional - Additional keywords (passed to matplotlib). """ _update_plot_title( @@ -540,6 +536,23 @@ def _make_legend_labels(labels, ignore_common=False): def _update_plot_title( title, fig=None, frame='axes', use_existing=True, **kwargs): + """Set or extend the centered title of a figure. + + Parameters + ---------- + title : str + Title text. + fig : Figure, optional + Matplotlib figure. Defaults to the current figure. + frame : str, optional + Coordinate frame for centering: 'axes' (default) or 'figure'. + use_existing : bool, optional + If True (default), extend the figure's existing title instead of + replacing it. + **kwargs : `matplotlib.pyplot.suptitle` keywords, optional + Additional keywords (passed to matplotlib). + + """ if title is False or title is None: return if fig is None: diff --git a/control/phaseplot.py b/control/phaseplot.py index 0fdb9922f..9ca05da8a 100644 --- a/control/phaseplot.py +++ b/control/phaseplot.py @@ -1257,7 +1257,7 @@ def phase_plot(odefun, X=None, Y=None, scale=1, X0=None, T=None, Parameters ---------- - func : callable(x, t, ...) + odefun : callable(x, t, ...) Computes the time derivative of y (compatible with odeint). The function should be the same for as used for `scipy.integrate`. Namely, it should be a function of the form dx/dt = F(t, x) that