Skip to content

Nyquist plot uses incorrect subplot axes #1144

Closed
@ondras12345

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions