Skip to content

Nyquist plot uses incorrect subplot axes #1144

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

Closed
ondras12345 opened this issue Apr 16, 2025 · 1 comment · Fixed by #1145
Closed

Nyquist plot uses incorrect subplot axes #1144

ondras12345 opened this issue Apr 16, 2025 · 1 comment · Fixed by #1145
Assignees
Milestone

Comments

@ondras12345
Copy link

import control as ctl
import matplotlib.pyplot as plt
P = ctl.tf([1], [2, 1])

fig, ax = plt.subplots(2,2)
ctl.nyquist_plot(P, ax=ax[1,0])
plt.show()

The nyquist plot always shows up in the botom right corner, no matter what index into ax I use.

When I replace the nyquist with step, it shows up at the correct position (bottom left in this case):

fig, ax = plt.subplots(2,2)
ctl.step_response(P).plot(ax=ax[1,0])
plt.show()

Version: control==0.10.1

@murrayrm murrayrm added this to the 0.10.2 milestone Apr 17, 2025
@murrayrm murrayrm self-assigned this Apr 17, 2025
@murrayrm
Copy link
Member

This was also pointed out by @JonHowMIT in #1143.

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 a pull request may close this issue.

2 participants