File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44# This file contains examples of phase portraits pulled from "Feedback
55# Systems" by Astrom and Murray (Princeton University Press, 2008).
66
7+ import os
8+
79import numpy as np
810import matplotlib .pyplot as mpl
911from control .phaseplot import phase_plot
@@ -120,4 +122,5 @@ def saddle_ode(x, t):
120122mpl .xlabel ('$x_1$' ); mpl .ylabel ('$x_2$' );
121123mpl .title ('Undamped system\n Lyapunov stable, not asympt. stable' )
122124
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 44and Postlethwaite, 1st Edition.
55"""
66
7+ import os
8+
79import numpy as np
810import matplotlib .pyplot as plt
911
99101plt .legend ()
100102plt .title ('Disturbance response' )
101103
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