@@ -55,7 +55,7 @@ def testRootLocus(self, sys):
55
55
self .check_cl_poles (sys , roots , klist )
56
56
57
57
# now check with plotting
58
- roots , k_out = root_locus (sys , klist )
58
+ roots , k_out = root_locus (sys , klist , plot = True )
59
59
np .testing .assert_equal (len (roots ), len (klist ))
60
60
np .testing .assert_allclose (klist , k_out )
61
61
self .check_cl_poles (sys , roots , klist )
@@ -68,7 +68,7 @@ def test_without_gains(self, sys):
68
68
@pytest .mark .slow
69
69
@pytest .mark .parametrize ('grid' , [None , True , False ])
70
70
def test_root_locus_plot_grid (self , sys , grid ):
71
- rlist , klist = root_locus (sys , grid = grid )
71
+ rlist , klist = root_locus (sys , plot = True , grid = grid )
72
72
ax = plt .gca ()
73
73
n_gridlines = sum ([int (line .get_linestyle () in [':' , 'dotted' ,
74
74
'--' , 'dashed' ])
@@ -82,7 +82,7 @@ def test_root_locus_plot_grid(self, sys, grid):
82
82
def test_root_locus_neg_false_gain_nonproper (self ):
83
83
""" Non proper TranferFunction with negative gain: Not implemented"""
84
84
with pytest .raises (ValueError , match = "with equal order" ):
85
- root_locus (TransferFunction ([- 1 , 2 ], [1 , 2 ]))
85
+ root_locus (TransferFunction ([- 1 , 2 ], [1 , 2 ]), plot = True )
86
86
87
87
# TODO: cover and validate negative false_gain branch in _default_gains()
88
88
@@ -93,7 +93,7 @@ def test_root_locus_zoom(self):
93
93
"""Check the zooming functionality of the Root locus plot"""
94
94
system = TransferFunction ([1000 ], [1 , 25 , 100 , 0 ])
95
95
plt .figure ()
96
- root_locus (system )
96
+ root_locus (system , plot = True )
97
97
fig = plt .gcf ()
98
98
ax_rlocus = fig .axes [0 ]
99
99
@@ -135,7 +135,7 @@ def test_rlocus_default_wn(self):
135
135
sys = ct .tf (* sp .signal .zpk2tf (
136
136
[- 1e-2 , 1 - 1e7j , 1 + 1e7j ], [0 , - 1e7j , 1e7j ], 1 ))
137
137
138
- ct .root_locus (sys )
138
+ ct .root_locus (sys , plot = True )
139
139
140
140
141
141
# TODO: add additional test cases
0 commit comments