Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix warnings generated by sisotool#608

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

roryyorke
Copy link
Contributor

Use recommended canvas.manager.{get,set}_window_title instead of
deprecated canvas.{get,set}_window_title.

Remove redundant marker specification in sisotool rlocus plot.canvas.manager.{get,set}_window_title

Fixes these warnings on master (Python 3.9.2, Matplotlib 3.4.1, python-control8299ebb):

ontrol/tests/sisotool_test.py::TestSisotool::test_sisotoolcontrol/tests/sisotool_test.py::TestSisotool::test_sisotool_tvectcontrol/tests/sisotool_test.py::TestSisotool::test_sisotool_tvect_dtcontrol/tests/sisotool_test.py::TestSisotool::test_sisotool_mimo  /home/rory/src/python-control/control/sisotool.py:84: MatplotlibDeprecationWarning:   The get_window_title function was deprecated in Matplotlib 3.4 and will be removed two minor releases later. Use manager.get_window_title or GUI-specific methods instead.    if fig.canvas.get_window_title() != 'Sisotool':control/tests/sisotool_test.py::TestSisotool::test_sisotoolcontrol/tests/sisotool_test.py::TestSisotool::test_sisotool_tvectcontrol/tests/sisotool_test.py::TestSisotool::test_sisotool_tvect_dtcontrol/tests/sisotool_test.py::TestSisotool::test_sisotool_mimo  /home/rory/src/python-control/control/sisotool.py:87: MatplotlibDeprecationWarning:   The set_window_title function was deprecated in Matplotlib 3.4 and will be removed two minor releases later. Use manager.set_window_title or GUI-specific methods instead.    fig.canvas.set_window_title('Sisotool')control/tests/sisotool_test.py::TestSisotool::test_sisotoolcontrol/tests/sisotool_test.py::TestSisotool::test_sisotool_tvectcontrol/tests/sisotool_test.py::TestSisotool::test_sisotool_tvect_dtcontrol/tests/sisotool_test.py::TestSisotool::test_sisotool_mimo  /home/rory/src/python-control/control/rlocus.py:180: UserWarning: marker is redundantly defined by the 'marker' keyword argument and the fmt string "m." (-> marker='.'). The keyword argument will take precedence.    fig.axes[1].plot(control/tests/sisotool_test.py::TestSisotool::test_sisotoolcontrol/tests/sisotool_test.py::TestSisotool::test_sisotool_tvectcontrol/tests/sisotool_test.py::TestSisotool::test_sisotool_tvect_dt  /home/rory/src/python-control/control/rlocus.py:628: UserWarning: marker is redundantly defined by the 'marker' keyword argument and the fmt string "m." (-> marker='.'). The keyword argument will take precedence.    ax_rlocus.plot(

Use recommended canvas.manager.{get,set}_window_title instead ofdeprecated canvas.{get,set}_window_title.Remove redundant marker specification in sisotool rlocus plot.
@coveralls
Copy link

Coverage Status

Coverage remained the same at 89.448% when pulling7ae6d0a on roryyorke:rory/sisotool-warnings into8299ebb on python-control:master.

@bnavigatorbnavigator merged commit15dc5ce intopython-control:masterApr 11, 2021
@murrayrmmurrayrm added this to the0.9.1 milestoneDec 30, 2021
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@bnavigatorbnavigatorbnavigator approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
0.9.1
Development

Successfully merging this pull request may close these issues.

4 participants
@roryyorke@coveralls@bnavigator@murrayrm

[8]ページ先頭

©2009-2025 Movatter.jp