8000 DOC: modified docstring (Examples section) in singular_values_plot to… · forgi86/python-control@10cde40 · GitHub
[go: up one dir, main page]

Skip to content

Commit 10cde40

Browse files
committed
DOC: modified docstring (Examples section) in singular_values_plot to make it doctest compliant
1 parent 9638e92 commit 10cde40

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

control/freqplot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,11 +1073,11 @@ def singular_values_plot(syslist, omega=None,
10731073
10741074
Examples
10751075
--------
1076-
>>> from numpy import logspace
1077-
>>> from control import tf
1076+
>>> import numpy
1077+
>>> from control import tf, singular_values_plot
10781078
>>> den = [75, 1]
10791079
>>> sys = tf([[[87.8], [-86.4]], [[108.2], [-109.6]]], [[den, den], [den, den]])
1080-
>>> omega = logspace(-4, 1, 1000)
1080+
>>> omega = np.logspace(-4, 1, 1000)
10811081
>>> sigma, omega = singular_values_plot(sys, plot=True)
10821082
>>> singular_values_plot(sys, 0.0, plot=False)
10831083
(array([[197.20868123],

0 commit comments

Comments
 (0)
0