Skip to content

Nyquist plot uses incorrect subplot axes #1144

Closed

Description

@ondras12345
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

Activity

  1. added this to the 0.10.2 milestone on Apr 17, 2025
  2. self-assigned this
    on Apr 17, 2025
  3. added theissue type on Apr 17, 2025
  4. murrayrm commented on Apr 17, 2025

    @murrayrm
    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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions