Skip to content

Commit

Permalink
formatting code to make easier sgrid() function in future.
Browse files Browse the repository at this point in the history
  • Loading branch information
gonmolina committed Apr 2, 2017
1 parent de87bb0 commit 5438746
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions control/rlocus.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def root_locus(sys, kvect=None, xlim=None, ylim=None, plotstr='-', Plot=True,
ax.set_xlabel('Real')
ax.set_ylabel('Imaginary')
if grid:
sgrid_func(f)
_sgrid_func()
return mymat, kvect


Expand Down Expand Up @@ -321,7 +321,9 @@ def _RLFeedbackClicks(event, sys):
(s.real, s.imag, K.real, -1 * s.real / abs(s)))


def sgrid_func(fig, zeta=None, wn=None):
def _sgrid_func(fig=None, zeta=None, wn=None):
if fig is None:
fig = pylab.gcf()
ax = fig.gca()
ylocator = ax.get_yaxis().get_major_locator()
xlocator = ax.get_xaxis().get_major_locator()
Expand Down

0 comments on commit 5438746

Please sign in to comment.