Skip to content

Commit 1474e82

Browse files
committed
fix bug using np.max
1 parent f9c4df2 commit 1474e82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

control/rlocus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ def _ax_lim(mymat):
319319
if xmax != xmin:
320320
deltax = (xmax - xmin) * 0.02
321321
else:
322-
deltax = np.max(1., xmax / 2)
322+
deltax = np.max([1., xmax / 2])
323323
xlim = [xmin - deltax, xmax + deltax]
324324
return xlim
325325

0 commit comments

Comments
 (0)