Skip to content

Commit b635798

Browse files
committed
fixed documentation
1 parent c0e4cb4 commit b635798

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

control/phaseplot.py

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ def phase_plane_plot(
111111
- lines[0] = list of Line2D objects (streamlines, separatrices).
112112
- lines[1] = Quiver object (vector field arrows).
113113
- lines[2] = list of Line2D objects (equilibrium points).
114+
- lines[3] = StreamplotSet object (lines with arrows).
114115
115116
* cplt.axes: 2D array of :class:`matplotlib.axes.Axes` for the plot.
116117
@@ -135,9 +136,9 @@ def phase_plane_plot(
135136
and gridtype. If set to a dict, pass on the key-value pairs in
136137
the dict as keywords to :func:`~control.phaseplot.vectorfield`.
137138
plot_streamplot : bool or dict, optional
138-
If `True` then use matplotlib's streamplot function to plot the
139-
streamlines. If set to a dict, pass on the key-value pairs in the
140-
dict as keywords to :func:`~
139+
If True then use :func:`matplotlib.axes.Axes.streamplot` function
140+
to plot the streamlines. If set to a dict, pass on the key-value
141+
pairs in the dict as keywords to :func:`~control.phaseplot.streamplot`.
141142
plot_equilpoints : bool or dict, optional
142143
If `True` (default) then plot equilibrium points based in the phase
143144
plot boundary. If set to a dict, pass on the key-value pairs in the
@@ -357,7 +358,7 @@ def streamplot(
357358
358359
Parameters
359360
----------
360-
sys : NonlinearIOSystem or callable(t, x, ...)
361+
sys : `NonlinearIOSystem` or callable(t, x, ...)
361362
I/O system or function used to generate phase plane data. If a
362363
function is given, the remaining arguments are drawn from the
363364
`params` keyword.
@@ -376,27 +377,27 @@ def streamplot(
376377
color : matplotlib color spec, optional
377378
Plot the vector field in the given color.
378379
vary_color : bool, optional
379-
If set to `True`, vary the color of the streamlines based on the magnitude
380+
If set to True, vary the color of the streamlines based on the magnitude
380381
vary_linewidth : bool, optional
381-
If set to `True`, vary the linewidth of the streamlines based on the magnitude
382+
If set to True, vary the linewidth of the streamlines based on the magnitude
382383
cmap : str or Colormap, optional
383384
Colormap to use for varying the color of the streamlines
384-
norm : Normalize, optional
385+
norm : `matplotlib.colors.Normalize`, optional
385386
An instance of Normalize to use for scaling the colormap and linewidths
386-
ax : matplotlib.axes.Axes
387+
ax : `matplotlib.axes.Axes`, optional
387388
Use the given axes for the plot, otherwise use the current axes.
388389
389390
Returns
390391
-------
391-
out : Quiver
392+
out : StreamplotSet
392393
393394
Other parameters
394395
----------------
395396
rcParams : dict
396397
Override the default parameters used for generating plots.
397-
Default is set by config.default['ctrlplot.rcParams'].
398+
Default is set by `config.default['ctrlplot.rcParams']`.
398399
suppress_warnings : bool, optional
399-
If set to `True`, suppress warning messages in generating trajectories.
400+
If set to True, suppress warning messages in generating trajectories.
400401
401402
"""
402403
# Process keywords

0 commit comments

Comments
 (0)