Skip to content

Commit c23a88d

Browse files
committed
update documentation (and plots)
1 parent 0e0b907 commit c23a88d

File tree

6 files changed

+16
-17
lines changed

6 files changed

+16
-17
lines changed

control/phaseplot.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,10 @@ def streamplot(
451451
452452
Other Parameters
453453
----------------
454+
cmap : str or Colormap, optional
455+
Colormap to use for varying the color of the streamlines.
456+
norm : `matplotlib.colors.Normalize`, optional
457+
Normalization map to use for scaling the colormap and linewidths.
454458
rcParams : dict
455459
Override the default parameters used for generating plots.
456460
Default is set by `config.default['ctrlplot.rcParams']`.
@@ -462,10 +466,6 @@ def streamplot(
462466
vary_linewidth : bool, optional.
463467
If set to True, vary the linewidth of the streamlines based on the
464468
magnitude of the vector field.
465-
cmap : str or Colormap, optional
466-
Colormap to use for varying the color of the streamlines.
467-
norm : `matplotlib.colors.Normalize`, optional
468-
Normalization map to use for scaling the colormap and linewidths.
469469
zorder : float, optional
470470
Set the zorder for the separatrices. In not specified, it will be
471471
automatically chosen by `matplotlib.axes.Axes.streamplot`.
40.7 KB
Loading
-33.6 KB
Loading
2 Bytes
Loading

doc/phaseplot.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -76,17 +76,17 @@ an inverted pendulum system, which is created using a mesh grid:
7676

7777
This figure shows several features of more complex phase plane plots:
7878
multiple equilibrium points are shown, with saddle points showing
79-
separatrices, and streamlines generated generated from a rectangular 25x25
80-
grid (default) of function evaluations. Together, the multiple features in
81-
the phase plane plot give a good global picture of the topological structure
82-
of solutions of the dynamical system.
83-
84-
Phase plots can be built up by hand using a variety of helper functions that
85-
are part of the :mod:`phaseplot` (pp) module. For more precise control, the
86-
streamlines can also generated by integrating the system forwads or backwards
87-
in time from a set of initial conditions. The initial conditions can be chosen
88-
on a rectangular grid, rectangual boundary, circle or from an arbitrary set of
89-
points.
79+
separatrices, and streamlines generated generated from a rectangular
80+
25x25 grid (default) of function evaluations. Together, the multiple
81+
features in the phase plane plot give a good global picture of the
82+
topological structure of solutions of the dynamical system.
83+
84+
Phase plots can be built up by hand using a variety of helper
85+
functions that are part of the :mod:`phaseplot` (pp) module. For more
86+
precise control, the streamlines can also generated by integrating the
87+
system forwards or backwards in time from a set of initial
88+
conditions. The initial conditions can be chosen on a rectangular
89+
grid, rectangual boundary, circle or from an arbitrary set of points.
9090

9191
.. testcode:: phaseplot
9292
:hide:
@@ -127,8 +127,8 @@ The following helper functions are available:
127127
phaseplot.equilpoints
128128
phaseplot.separatrices
129129
phaseplot.streamlines
130-
phaseplot.vectorfield
131130
phaseplot.streamplot
131+
phaseplot.vectorfield
132132

133133
The :func:`phase_plane_plot` function calls these helper functions
134134
based on the options it is passed.

examples/plot_gallery.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ def invpend_update(t, x, u, params):
102102
invpend = ct.nlsys(invpend_update, states=2, inputs=1, name='invpend')
103103
ct.phase_plane_plot(
104104
invpend, [-2*pi, 2*pi, -2, 2], 5,
105-
gridtype='meshgrid', gridspec=[5, 8], arrows=3,
106105
plot_separatrices={'gridspec': [12, 9]},
107106
params={'m': 1, 'l': 1, 'b': 0.2, 'g': 1})
108107

0 commit comments

Comments
 (0)