8000 fixed documentation · lkies/python-control@03c3b35 · GitHub
[go: up one dir, main page]

Skip to content

Commit 03c3b35

Browse files
committed
fixed documentation
1 parent a94f6ca commit 03c3b35

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
@@ -105,6 +105,7 @@ def phase_plane_plot(
105105
- lines[0] = list of Line2D objects (streamlines, separatrices).
106106
- lines[1] = Quiver object (vector field arrows).
107107
- lines[2] = list of Line2D objects (equilibrium points).
108+
- lines[3] = StreamplotSet object (lines with arrows).
108109
109110
cplt.axes : 2D array of `matplotlib.axes.Axes`
110111
Axes for each subplot.
@@ -136,9 +137,9 @@ def phase_plane_plot(
136137
and gridtype. If set to a dict, pass on the key-value pairs in
137138
the dict as keywords to `phaseplot.vectorfield`.
138139
plot_streamplot : bool or dict, optional
139-
If `True` then use matplotlib's streamplot function to plot the
140-
streamlines. If set to a dict, pass on the key-value pairs in the
141-
dict as keywords to :func:`~
140+
If True then use :func:`matplotlib.axes.Axes.streamplot` function
141+
to plot the streamlines. If set to a dict, pass on the key-value
142+
pairs in the dict as keywords to :func:`~control.phaseplot.streamplot`.
142143
plot_equilpoints : bool or dict, optional
143144
If True (default) then plot equilibrium points based in the phase
144145
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)
0