GeezerVison is showing github.com — Fix warnings generated by sisotool · python-control/python-control@7ae6d0a
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: control/rlocus.py +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -180,7 +180,7 @@ def root_locus(sys, kvect=None, xlim=None, ylim=None, | 180 | 180 | fig.axes[1].plot( | 181 | 181 | [root.real for root in start_mat], | 182 | 182 | [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') | 184 | 184 | s = start_mat[0][0] | 185 | 185 | if isdtime(sys, strict=True): | 186 | 186 | zeta = -np.cos(np.angle(np.log(s))) | @@ -628,7 +628,7 @@ def _RLFeedbackClicksPoint(event, sys, fig, ax_rlocus, sisotool=False): | 628 | 628 | ax_rlocus.plot( | 629 | 629 | [root.real for root in mymat], | 630 | 630 | [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') | 632 | 632 | else: | 633 | 633 | ax_rlocus.plot(s.real, s.imag, 'k.', marker='s', markersize=8, | 634 | 634 | zorder=20, label='gain_point') | |
Collapse file Copy file name to clipboardExpand all lines: control/sisotool.py +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -81,10 +81,10 @@ def sisotool(sys, kvect=None, xlim_rlocus=None, ylim_rlocus=None, | 81 | 81 |
| 82 | 82 | # Setup sisotool figure or superimpose if one is already present | 83 | 83 | fig = plt.gcf() | 84 | | - if fig.canvas.get_window_title() != 'Sisotool': | | 84 | + if fig.canvas.manager.get_window_title() != 'Sisotool': | 85 | 85 | plt.close(fig) | 86 | 86 | fig,axes = plt.subplots(2, 2) | 87 | | - fig.canvas.set_window_title('Sisotool') | | 87 | + fig.canvas.manager.set_window_title('Sisotool') | 88 | 88 |
| 89 | 89 | # Extract bode plot parameters | 90 | 90 | bode_plot_params = { | |
|