Skip to content

Bode margins plot #199

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Dec 28, 2018
Merged

Bode margins plot #199

merged 5 commits into from
Dec 28, 2018

Conversation

icam0
Copy link
Contributor

@icam0 icam0 commented Mar 31, 2018

Added display of the phase and gain margins to the bode plots in order to emulate matlab like functionality when calling margin(sys) in matlab. Can be used when calling bode(sys, margins=True). Attached 2 screenshots showing the plots in matplotlib and matlab side by side.

figure_1_matlab
figure_1_python

@coveralls
Copy link

coveralls commented Mar 31, 2018

Coverage Status

Coverage increased (+0.02%) to 78.936% when pulling 991daf4 on icam0:bode_margins_plot into a007fcc on python-control:master.

@icam0
Copy link
Contributor Author

icam0 commented Apr 22, 2018

Build seems to be failing due to issue #194

@repagh
Copy link
Member

repagh commented May 22, 2018

I don't see what the

import sys as system

line is for. Seems not to be used, and renaming it system is not a good idea in this context

@icam0
Copy link
Contributor Author

icam0 commented May 25, 2018

@repagh , you are right. I suspect this was a leftover from some testing on my part. I removed it.

@murrayrm murrayrm added this to the 0.8.1 milestone Jun 30, 2018
@murrayrm
Copy link
Member

Note: this PR has been included in PR #209. If that PR is merged, can delete this one.

@murrayrm murrayrm modified the milestones: 0.8.1, 0.8.2 Jul 18, 2018
@murrayrm murrayrm merged commit 4286329 into python-control:master Dec 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants