8000 fix typos + other small fixes from @slivingston · python-control/python-control@748e36a · GitHub
[go: up one dir, main page]

Skip to content

Commit 748e36a

Browse files
committed
fix typos + other small fixes from @slivingston
1 parent edb444e commit 748e36a

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

control/phaseplot.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
phase plots. The base function for creating phase plane portraits is
1616
:func:`~control.phase_plane_plot`, which generates a phase plane portrait
1717
for a 2 state I/O system (with no inputs). In addition, several other
18-
functions are available to creat ecustomize phase plane plots:
18+
functions are available to create customized phase plane plots:
1919
2020
* boxgrid: Generate a list of points along the edge of a box
2121
* circlegrid: Generate list of points around a circle
@@ -103,7 +103,7 @@ def phase_plane_plot(
103103
plot_separatrices : bool or dict
104104
If `True` (default) then plot separatrices starting from each
105105
equilibrium point. If set to a dict, pass on the key-value pairs
106-
in the dict as keywords to :func:`~control.phaseplot.streamlines`.
106+
in the dict as keywords to :func:`~control.phaseplot.separatrices`.
107107
color : str
108108
Plot all elements in the given color (use `plot_<fcn>={'color': c}`
109109
to set the color in one element of the phase plot.
@@ -397,7 +397,7 @@ def equilpoints(
397397
Parameters
398398
----------
399399
sys : NonlinearIOSystem or callable(t, x, ...)
400-
I/O systems or function used to generate phase plane data. If a
400+
I/O system or function used to generate phase plane data. If a
401401
function is given, the remaining arguments are drawn from the
402402
`params` keyword.
403403
pointdata : list or 2D array
@@ -702,7 +702,7 @@ def circlegrid(centers, radius, num):
702702
# Internal utility functions
703703
#
704704

705-
# Create a system form a callable
705+
# Create a system from a callable
706706
def _create_system(sys, params):
707707
if isinstance(sys, NonlinearIOSystem):
708708
if sys.nstates != 2:
@@ -789,9 +789,6 @@ def _make_points(pointdata, gridspec, gridtype):
789789

790790
# Utility function to parse (and check) input arguments
791791
def _parse_args(defsize):
792-
# if not isinstance(pointdata, (list, tuple)) or len(pointdata) != 4:
793-
# raise ValueError("invalid grid data specification")
794-
795792
if gridspec is None:
796793
return defsize
797794

doc/plotting.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ The following helper functions are available:
363363
The :func:`~control.phase_plane_plot` function calls these helper functions
364364
based on the options it is passed.
365365

366-
Note that unlike other plotting function, phase plane plots do not involve
366+
Note that unlike other plotting functions, phase plane plots do not involve
367367
computing a response and then plotting the result via a `plot()` method.
368368
Instead, the plot is generated directly be a call to the
369369
:func:`~control.phase_plane_plot` function (or one of the

examples/phase_plane_plots.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# RMM, 25 Mar 2024
33
#
44
# This file contains a number of examples of phase plane plots generated
5-
# using the phaseplot module. Most of these figures lines up with examples
5+
# using the phaseplot module. Most of these figures line up with examples
66
# in FBS2e, with different display options shown as different subplots.
77

88
import time

0 commit comments

Comments
 (0)
0