8000 Merge pull request #608 from roryyorke/rory/sisotool-warnings · python-control/python-control@15dc5ce · GitHub
[go: up one dir, main page]

Skip to content

Commit 15dc5ce

Browse files
authored
Merge pull request #608 from roryyorke/rory/sisotool-warnings
Fix warnings generated by sisotool
2 parents 8299ebb + 7ae6d0a commit 15dc5ce

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

control/rlocus.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def root_locus(sys, kvect=None, xlim=None, ylim=None,
180180
fig.axes[1].plot(
181181
[root.real for root in start_mat],
182182
[root.imag for root in start_mat],
183-
'm.', marker='s', markersize=8, zorder=20, label='gain_point')
183+
marker='s', markersize=8, zorder=20, label='gain_point')
184184
s = start_mat[0][0]
185185
if isdtime(sys, strict=True):
186186
zeta = -np.cos(np.angle(np.log(s)))
@@ -628,7 +628,7 @@ def _RLFeedbackClicksPoint(event, sys, fig, ax_rlocus, sisotool=False):
628628
ax_rlocus.plot(
629629
[root.real for root in mymat],
630630
[root.imag for root in mymat],
631-
'm.', marker='s', markersize=8, zorder=20, label='gain_point')
631+
marker='s', markersize=8, zorder=20, label='gain_point')
632632
else:
633633
ax_rlocus.plot(s.real, s.imag, 'k.', marker='s', markersize=8,
634634
zorder=20, label='gain_point')

control/sisotool.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@ def sisotool(sys, kvect=None, xlim_rlocus=None, ylim_rlocus=None,
8181

8282
# Setup sisotool figure or superimpose if one is already present
8383
fig = plt.gcf()
84-
if fig.canvas.get_window_title() != 'Sisotool':
84+
if fig.canvas.manager.get_window_title() != 'Sisotool':
8585
plt.close(fig)
8686
fig,axes = plt.subplots(2, 2)
87-
fig.canvas.set_window_title('Sisotool')
87+
fig.canvas.manager.set_window_title('Sisotool')
8888

8989
# Extract bode plot parameters
9090
bode_plot_params = {

0 commit comments

Comments
 (0)
0