Skip to content

Commit 9638e92

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

control/freqplot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1073,10 +1073,11 @@ def singular_values_plot(syslist, omega=None,
10731073
10741074
Examples
10751075
--------
1076+
>>> from numpy import logspace
10761077
>>> from control import tf
10771078
>>> den = [75, 1]
10781079
>>> sys = tf([[[87.8], [-86.4]], [[108.2], [-109.6]]], [[den, den], [den, den]])
1079-
>>> omega = np.logspace(-4, 1, 1000)
1080+
>>> omega = logspace(-4, 1, 1000)
10801081
>>> sigma, omega = singular_values_plot(sys, plot=True)
10811082
>>> singular_values_plot(sys, 0.0, plot=False)
10821083
(array([[197.20868123],

0 commit comments

Comments
 (0)