Skip to content

Commit 5d7a8d3

Browse files
committed
added noteto docstring for how to use when no interative plots
1 parent a0877c5 commit 5d7a8d3

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

control/sisotool.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,15 @@ def rootlocus_pid_designer(plant, gain='P', sign=+1, input_signal='r',
220220
`'I'`, or `'D'`). Make sure to add the resulting `deltaK` to your chosen
221221
initial gain on the next iteration.
222222
223+
Note: Clicking on interactive plots feature is not currently compatible
224+
with in-line plots in the Jupyter Notebook including online notebooks.
225+
The alternative is to iteratively explore calling this function with
226+
different initial argument values `Kp0`, `Ki0`, and `Kd0`. If you are
227+
running the notebook on your local computer, it may be possible to spawn
228+
separate interactive plots outside of the notebook with a command, e.g.
229+
`%matplotlib qt`; when you are done, `%matplotlib inline` returns to
230+
inline plots.
231+
223232
Example: to examine the effect of varying `Kp` starting from an intial
224233
value of 10, use the arguments `gain='P', Kp0=10`. Suppose a `deltaK`
225234
value of 5 gives satisfactory performance. Then on the next iteration,
@@ -254,7 +263,7 @@ def rootlocus_pid_designer(plant, gain='P', sign=+1, input_signal='r',
254263
its second input rather than being added to `u`.
255264
256265
Remark: It may be helpful to zoom in using the magnifying glass on the
257-
plot. Just ake sure to deactivate magnification mode when you are done by
266+
plot. Just make sure to deactivate magnification mode when you are done by
258267
clicking the magnifying glass. Otherwise you will not be able to be able
259268
to choose a gain on the root locus plot.
260269
@@ -320,7 +329,7 @@ def rootlocus_pid_designer(plant, gain='P', sign=+1, input_signal='r',
320329
deriv = tf([1, -1], [dt, 0], dt)
321330

322331
# add signal names by turning into iosystems
323-
prop = tf2io(prop, inputs='e', outputs='prop_e')
332+
prop = tf2io(prop, )
324333
integ = tf2io(integ, inputs='e', outputs='int_e')
325334
if derivative_in_feedback_path:
326335
deriv = tf2io(-deriv, inputs='y', outputs='deriv')

0 commit comments

Comments
 (0)