Skip to content

Commit 4959a84

Browse files
committed
removed code for manually settings the axes
1 parent c49e2bd commit 4959a84

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

control/rlocus.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -174,13 +174,6 @@ def root_locus(sys, kvect=None, xlim=None, ylim=None, plotstr='b' if int(matplot
174174
ax.axhline(0., linestyle=':', color='k',zorder=-20)
175175
ax.axvline(0., linestyle=':', color='k')
176176

177-
x0, x1 = ax.get_xlim()
178-
y0, y1 = ax.get_ylim()
179-
if abs(x0-x1) >= abs(y0-y1):
180-
ax.set_xlim(0. - 0.5*abs(y0-y1) ,0. +0.5*abs(y0-y1))
181-
else:
182-
ax.set_ylim(0. - 0.5 * abs(x0 - x1), 0. + 0.5 * abs(x0 - x1))
183-
184177
return mymat, kvect
185178

186179

0 commit comments

Comments
 (0)