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

Refine automatic contour determination in Nyquist plot#620

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 5 commits intopython-control:masterfrombnavigator:freqplot-omega
Jun 16, 2021

Conversation

bnavigator
Copy link
Contributor

Fix for#613

import controlimport matplotlib.pyplot as pltG =  control.tf([1], [1,1,0,0,0])count, contour1 = control.nyquist_plot(G, label='indent_radius default (0.1)',                     return_contour=True)R = 0.11count, contour2 = control.nyquist_plot(G, indent_radius=R,                                      return_contour=True,                                      label=f'indent_radius={R}')ax = plt.gca()ax.set_aspect(1)ax.legend(bbox_to_anchor=(1.05, 1), loc='upper left', borderaxespad=0.)plt.figure()cp = plt.plot(contour1.real, contour1.imag, '-',              label='indent_radius default (0.1)')c = cp[0].get_color()plt.plot(contour1.real, -contour1.imag, '--', color=c)cp = plt.plot(contour2.real, contour2.imag, '-',              label=f'indent_radius={R}')c = cp[0].get_color()plt.plot(contour2.real, -contour2.imag, '--', color=c)ax = plt.gca()ax.legend()ax.set_aspect(1)ax.set_xlim([-0.2, 0.2])ax.set_ylim([-0.2, 0.2])ax.grid()ax.set_title(r'Nyquist Contour $\Gamma$',)plt.show()

Figure_1
Figure_2

@coveralls
Copy link

coveralls commentedMay 1, 2021
edited
Loading

Coverage Status

Coverage increased (+0.01%) to 89.641% when pulling5cf0358 on bnavigator:freqplot-omega into9f27293 on python-control:master.

@josujugo
Copy link

Hi,

I am trying to replicate this code in the master version and I am getting different plots. What am I doing wrong?

download-3

download-2

@bnavigator
Copy link
ContributorAuthor

The master branch does not have the changed code. You have to checkout the PR brach.

@josujugo
Copy link

Ok, thanks. I have misunderstood it.

@murrayrmmurrayrm merged commit618ea45 intopython-control:masterJun 16, 2021
@murrayrmmurrayrm added this to the0.9.1 milestoneDec 30, 2021
@bnavigatorbnavigator deleted the freqplot-omega branchFebruary 18, 2024 20:30
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
0.9.1
Development

Successfully merging this pull request may close these issues.

Nyquist plot with imaginary poles, semi-circles only working after 'trick'
4 participants
@bnavigator@coveralls@josujugo@murrayrm

[8]ページ先頭

©2009-2025 Movatter.jp