Skip to content

Freqplot improvements #522

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

Conversation

sawyerbfuller
Copy link
Contributor

@sawyerbfuller sawyerbfuller commented Jan 28, 2021

fixes to freqplot.py:

  • empty glyph in margin plot
  • evalfr(sys,s)->sys(s)
  • changed to a reasonable number of frequency points (1000) in bode plots (up from a very coarse 50)
  • unify frequency range specification between bode and nyquist
    edit:
  • mag/phase data in bode plot is now plotted along with vertical nyquist freq line for DT systems so that it is convenient to call legend(('sys1', 'sys2'))
  • unit tests for frequency ranges

@coveralls
Copy link

coveralls commented Jan 28, 2021

Coverage Status

Coverage decreased (-0.07%) to 87.685% when pulling 73ce1a6 on sawyerbfuller:freqplot-improvements into 6d51358 on python-control:master.

@sawyerbfuller
Copy link
Contributor Author

added a commit because changes were not necessary and to avoid a merge conflict with #521

@@ -78,8 +78,8 @@ def test_sisotool(self, sys):

# Check if the bode_mag line has moved
bode_mag_moved = np.array(
[111.83321224, 92.29238035, 76.02822315, 62.46884113, 51.14108703,
41.6554004, 33.69409534, 27.00237344, 21.38086717, 16.67791585])
[674.0242, 667.8354, 661.7033, 655.6275, 649.6074, 643.6426,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had to Change this because new number of sampling points.

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.

3 participants