7575
7676# Main function: compute a root locus diagram
7777def root_locus (sys , kvect = None , xlim = None , ylim = None ,
78- plotstr = None , plot = True , print_gain = None , grid = None , ax = None ,
78+ plotstr = None , plot = True , print_gain = None , grid = None , ax = None ,
7979 ** kwargs ):
8080
8181 """Root locus plot
@@ -91,18 +91,22 @@ def root_locus(sys, kvect=None, xlim=None, ylim=None,
9191 kvect : list or ndarray, optional
9292 List of gains to use in computing diagram.
9393 xlim : tuple or list, optional
94- Set limits of x axis, normally with tuple (see matplotlib.axes).
94+ Set limits of x axis, normally with tuple
95+ (see :doc:`matplotlib:api/axes_api`).
9596 ylim : tuple or list, optional
96- Set limits of y axis, normally with tuple (see matplotlib.axes).
97+ Set limits of y axis, normally with tuple
98+ (see :doc:`matplotlib:api/axes_api`).
99+ plotstr : :func:`matplotlib.pyplot.plot` format string, optional
100+ plotting style specification
97101 plot : boolean, optional
98102 If True (default), plot root locus diagram.
99103 print_gain : bool
100104 If True (default), report mouse clicks when close to the root locus
101105 branches, calculate gain, damping and print.
102106 grid : bool
103107 If True plot omega-damping grid. Default is False.
104- ax : Matplotlib axis
105- axis on which to create root locus plot
108+ ax : :class:`matplotlib.axes.Axes`
109+ Axes on which to create root locus plot
106110
107111 Returns
108112 -------
@@ -160,7 +164,7 @@ def root_locus(sys, kvect=None, xlim=None, ylim=None,
160164 fig = kwargs ['fig' ]
161165 ax = fig .axes [1 ]
162166 else :
163- if ax is None :
167+ if ax is None :
164168 ax = plt .gca ()
165169 fig = ax .figure
166170 ax .set_title ('Root Locus' )
0 commit comments