diff --git a/control_plotly/figures.py b/control_plotly/figures.py index f098341..1d9c1c5 100644 --- a/control_plotly/figures.py +++ b/control_plotly/figures.py @@ -196,18 +196,18 @@ def add_plot(self,tf,label="sys"): line = dict(color=self.get_next_color()) data = [] - poles = tf.pole() + poles = tf.poles() data_poles = { "x": np.real(poles), "y": np.imag(poles), "name": label, "line": line, - "hovertemplate": "Pole
real: %{x:.3f}
imag: %{y:.3f}
", + "hovertemplate": "Poles
real: %{x:.3f}
imag: %{y:.3f}
", "mode": "markers", "marker": {"symbol": "x", "size": 8}, } - zeros = tf.zero() + zeros = tf.zeros() data_zeros = { "x": np.real(zeros), "y": np.imag(zeros), @@ -438,7 +438,7 @@ def add_plot(self,tf,k=np.logspace(-2,1.2,1000),label="sys"): poles = [] for k_temp in k : tf_cl = ctl.feedback(k_temp*tf,1) - poles.append(tf_cl.pole()) + poles.append(tf_cl.poles()) #prepare_data poles = np.array(poles) diff --git a/requirements.txt b/requirements.txt index 3987472..3fc8770 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -control +control>=0.10.2 plotly==4.5.4