-
Notifications
You must be signed in to change notification settings - Fork 438
I'm having problems with the ax
parameters of the rlocus
function
#623
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
Comments
Looks like you caught a bug, thanks! I think when we implemented this we had what you intended in mind but didn’t get around to testing it. |
It's not too difficult to fix. I think we just need to unindent lines 171 and 172 by one tab: python-control/control/rlocus.py Lines 169 to 172 in 283f5e7
|
I'm happy to implement this immediate fix (and #632 at the same time) and maybe add some unit tests, including for other plot functions where applicable. If I recall correctly, I was trying to do this a while back and the problem is that some plot funcs need to generate their own axis (e.g. radial plots) and some generate a figure containing more than one axis. |
If you manage to also fix #634 while you are at it, it would be a blast. Not sure if it is worth to be done before/without implementing the new plotting paradigm, proposed by you in #65 (comment) |
I'll have a look at #634. But I'm waiting for further input on the new plotting paradigm. That will require more thinking and discussion and probably take a while to figure out a way forward. There might be better ways to do it. I'm happy to try fixing the immediate bugs on the existing functions when I next get the chance. |
I was trying today to plot the root locus of a transfer function, but wanted to pass a specific axes object to it, so I tried to use the
ax
parameter of therlocus
function:But when doing this, the following error was raised:
Control version: 0.9.0
The text was updated successfully, but these errors were encountered: