control_plotly.rlocus

control_plotly.rlocus(sys, k=None, x_lim=None, y_lim=None, show_grid=False, wn=array([0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0]), m=array([0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]))

Returns the root locus chart of the continuous or discrete-time systems sys_list.

Parameters
  • sys (system) – A single system

  • k (numpy vector (optional)) – The vector of feedback gains

  • x_lim (list (optional)) – A list of two element that defines the min and max value for the x axis

  • y_lim (list (optional)) – A list of two element that defines the min and max value for the y axis

  • show_grid (boolean (optional)) – Add the discrete to continuous pole grid

Returns

fig – A plotly figure

Return type

plotly figure

Example

import control as ctl
from control_plotly import rlocus

sys = ctl.tf([2,5,1],[1,2,3])
rlocus(sys)
alternate text