Skip to content
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

implementation of initial_phase, wrap_phase keywords for bode() #494

Merged
merged 3 commits into from Jan 2, 2021

Conversation

murrayrm
Copy link
Member

This PR adds initial_phase and wrap_phase keywords to bode, which allow you to tune the behavior of the phase portion of a Bode plot. The default behavior should more or less match previous behavior, except that the default initial phase will be between 0 and -360 degrees (so 1/s^3 will start with phase -270).

Resolves issue #467.

@coveralls
Copy link

coveralls commented Dec 31, 2020

Coverage Status

Coverage increased (+0.002%) to 87.53% when pulling 2702ee7 on murrayrm:bode_initial_wrap_phase into 383e7a4 on python-control:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 87.391% when pulling 775b03f on murrayrm:bode_initial_wrap_phase into 383e7a4 on python-control:master.

control/freqplot.py Outdated Show resolved Hide resolved
control/tests/freqresp_test.py Show resolved Hide resolved
control/tests/freqresp_test.py Outdated Show resolved Hide resolved
@bnavigator bnavigator merged commit 5125ff7 into python-control:master Jan 2, 2021
@bnavigator bnavigator mentioned this pull request Jan 3, 2021
3 tasks
murrayrm added a commit to murrayrm/python-control that referenced this pull request Jan 4, 2021
…on-control#494)

* implementation of initial_phase, wrap_phase keywords for bode()

* add additional documentation on initial_phase if deg=False

* clear figure in unit tests to avoid slow plotting problem
@murrayrm murrayrm deleted the bode_initial_wrap_phase branch January 5, 2021 06:39
@murrayrm murrayrm added this to the 0.9.0 milestone Mar 20, 2021
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.

None yet

3 participants