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

Add extra information to nyquist plots#997

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
murrayrm merged 4 commits intopython-control:mainfromwueestry:nyquist_improvements
Jun 30, 2024

Conversation

wueestry
Copy link
Contributor

Adds the possibility to add the unit circle (to get gain crossover frequency), Ms-circle (sensitivity) and Mt-circle (complementary sensitivity) to nyquist plots similar to the approach taken inJuliaControl

image

@murrayrm
Copy link
Member

It would be nice to have unit tests, even if they call the code to get coverage (better would be to check to make sure the lines are in the right place).

If the system is discrete time, are these still the right circles to draw?

Any interaction with axis scaling? Eg, if all of the action is very near the origin, might this reset the axes in a way that makes it harder to see the Nyquist plot? If so, is there a better way to do that (eg, fix the axes and let the circle disappear at the edges of the axes)?

@coveralls
Copy link

coveralls commentedApr 26, 2024
edited
Loading

Coverage Status

coverage: 94.533% (+0.02%) from 94.518%
when pulling10d2010 on wueestry:nyquist_improvements
intofeeb56a on python-control:main.

@wueestry
Copy link
ContributorAuthor

It would be nice to have unit tests, even if they call the code to get coverage (better would be to check to make sure the lines are in the right place).

If the system is discrete time, are these still the right circles to draw?

Any interaction with axis scaling? Eg, if all of the action is very near the origin, might this reset the axes in a way that makes it harder to see the Nyquist plot? If so, is there a better way to do that (eg, fix the axes and let the circle disappear at the edges of the axes)?

This works as well for discrete systems. And tests have now been added.
Not sure yet if fixing the axis is the best idea, as it would result in issues when plotting a second system in the same plot afterwards

If 'True', displays the unit circle, to read gain crossover frequency.

mt_circles : array_like, optional
draws circles corresponding to the given magnitudes of sensitivity
Copy link
Member

Choose a reason for hiding this comment

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

For consistency, start phrase with a capital letter and end in a period.

draws circles corresponding to the given magnitudes of sensitivity

ms_circles : array_like, optional
draws circles corresponding to the given magnitudes in complementary sensitivity
Copy link
Member

Choose a reason for hiding this comment

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

For consistency, start phrase with a capital letter and end in a period.

@murrayrmmurrayrm marked this pull request as ready for reviewJune 30, 2024 16:11
@murrayrm
Copy link
Member

I rebased this onto the current main branch and added the ability to set the line style for the circles usingconfig.defaults.

@murrayrmmurrayrm merged commit4acc78b intopython-control:mainJun 30, 2024
23 checks passed
@murrayrmmurrayrm added this to the0.10.1 milestoneJun 30, 2024
@murrayrmmurrayrm mentioned this pull requestJun 30, 2024
11 tasks
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@murrayrmmurrayrmmurrayrm left review comments

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

Successfully merging this pull request may close these issues.

3 participants
@wueestry@murrayrm@coveralls

[8]ページ先頭

©2009-2025 Movatter.jp