Skip to content

Commit 6d42088

Browse files
authored
Merge pull request #1042 from murrayrm/docfix-16Aug2024
Small user documentation fixes
2 parents f86ebda + d176201 commit 6d42088

File tree

3 files changed

+25
-20
lines changed

3 files changed

+25
-20
lines changed

doc/iosys.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ a :class:`~control.StateSpace` linear system. Use the
2525
ss_sys = ct.linearize(io_sys, xeq, ueq)
2626

2727
Input/output systems are automatically created for state space LTI systems
28-
when using the :func:`ss` function. Nonlinear input/output systems can be
29-
created using the :func:`~control.nlsys` function, which requires
30-
the definition of an update function (for the right hand side of the
31-
differential or different equation) and an output function (computes the
32-
outputs from the state)::
28+
when using the :func:`~control.ss` function. Nonlinear input/output
29+
systems can be created using the :func:`~control.nlsys` function, which
30+
requires the definition of an update function (for the right hand side of
31+
the differential or different equation) and an output function (computes
32+
the outputs from the state)::
3333

3434
io_sys = ct.nlsys(updfcn, outfcn, inputs=M, outputs=P, states=N)
3535

@@ -434,8 +434,8 @@ of an individual system are used in a given specification::
434434
inplist=['sum.r', 'P.v'], outlist=['P', 'C.u']
435435
)
436436

437-
And finally, since we have named the signals throughout the system in
438-
a consistent way, we could let :func:`ct.interconnect` do all of the
437+
And finally, since we have named the signals throughout the system in a
438+
consistent way, we could let :func:`~control.interconnect` do all of the
439439
work::
440440

441441
clsys5 = ct.interconnect(

doc/optimal.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ state and/or input, either along the trajectory and at the terminal time.
221221
The optimal control module operates by converting the optimal control
222222
problem into a standard optimization problem that can be solved by
223223
:func:`scipy.optimize.minimize`. The optimal control problem can be solved
224-
by using the :func:`~control.obc.solve_ocp` function::
224+
by using the :func:`~control.optimal.solve_ocp` function::
225225

226226
res = obc.solve_ocp(sys, timepts, X0, cost, constraints)
227227

@@ -467,6 +467,10 @@ formulations.
467467

468468
Module classes and functions
469469
============================
470+
471+
The following classes and functions are defined in the
472+
``optimal`` module:
473+
470474
.. autosummary::
471475
:toctree: generated/
472476
:template: custom-class-template.rst

doc/plotting.rst

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
.. _plotting-module:
22

3+
.. currentmodule:: control
4+
35
*************
46
Plotting data
57
*************
@@ -213,8 +215,8 @@ plot, use `plot_type='nichols'`::
213215

214216
.. image:: freqplot-siso_nichols-default.png
215217

216-
Another response function that can be used to generate Bode plots is
217-
the :func:`~control.gangof4` function, which computes the four primary
218+
Another response function that can be used to generate Bode plots is the
219+
:func:`~control.gangof4_response` function, which computes the four primary
218220
sensitivity functions for a feedback control system in standard form::
219221

220222
proc = ct.tf([1], [1, 1, 1], name="process")
@@ -408,10 +410,10 @@ are part of the :mod:`~control.phaseplot` (pp) module::
408410
The following helper functions are available:
409411

410412
.. autosummary::
411-
~control.phaseplot.equilpoints
412-
~control.phaseplot.separatrices
413-
~control.phaseplot.streamlines
414-
~control.phaseplot.vectorfield
413+
phaseplot.equilpoints
414+
phaseplot.separatrices
415+
phaseplot.streamlines
416+
phaseplot.vectorfield
415417

416418
The :func:`~control.phase_plane_plot` function calls these helper functions
417419
based on the options it is passed.
@@ -653,10 +655,10 @@ Plotting functions
653655
~control.nichols_plot
654656
~control.nyquist_plot
655657
~control.phase_plane_plot
656-
~control.phaseplot.equilpoints
657-
~control.phaseplot.separatrices
658-
~control.phaseplot.streamlines
659-
~control.phaseplot.vectorfield
658+
phaseplot.equilpoints
659+
phaseplot.separatrices
660+
phaseplot.streamlines
661+
phaseplot.vectorfield
660662
~control.pole_zero_plot
661663
~control.root_locus_plot
662664
~control.singular_values_plot
@@ -665,15 +667,14 @@ Plotting functions
665667

666668
Utility functions
667669
-----------------
668-
669670
These additional functions can be used to manipulate response data or
670671
carry out other operations in creating control plots.
671672

672673

673674
.. autosummary::
674675
:toctree: generated/
675676

676-
~control.box_grid
677+
phaseplot.boxgrid
677678
~control.combine_time_responses
678679
~control.pole_zero_subplots
679680
~control.reset_rcParams

0 commit comments

Comments
 (0)