File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 4
4
# This file contains examples of phase portraits pulled from "Feedback
5
5
# Systems" by Astrom and Murray (Princeton University Press, 2008).
6
6
7
+ import os
8
+
7
9
import numpy as np
8
10
import matplotlib .pyplot as mpl
9
11
from control .phaseplot import phase_plot
@@ -120,4 +122,5 @@ def saddle_ode(x, t):
120
122
mpl .xlabel ('$x_1$' ); mpl .ylabel ('$x_2$' );
121
123
mpl .title ('Undamped system\n Lyapunov stable, not asympt. stable' )
122
124
123
- mpl .show ()
125
+ if 'PYCONTROL_TEST_EXAMPLES' not in os .environ ():
126
+ mpl .show ()
Original file line number Diff line number Diff line change 4
4
and Postlethwaite, 1st Edition.
5
5
"""
6
6
7
+ import os
8
+
7
9
import numpy as np
8
10
import matplotlib .pyplot as plt
9
11
99
101
plt .legend ()
100
102
plt .title ('Disturbance response' )
101
103
102
- plt .show ()
104
+ if 'PYCONTROL_TEST_EXAMPLES' not in os .environ ():
105
+ plt .show ()
You can’t perform that action at this time.
0 commit comments