-
Notifications
You must be signed in to change notification settings - Fork 190
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
plot_motion
does not accept axes
or ax
argument
#2725
Comments
Not a clue. @alejoe91 or @samuelgarcia would have to weigh in on this. Based on the code it looks like it generates its own sub-ax so maybe they didn't want the user to supply an |
Yes indeed this makes sense, it works well with |
As far as assert messaging I don't think anyone would complain about that :) But we can definitely wait for the others to weigh in. |
Hi |
So I think the fix would be like what @JoeZiminski said. Add better assert messaging so the user knows this is one function that can't accept external ax/axes. Good for you @samuelgarcia ? |
yes yes of course (or making the code accept axes) |
Fixed in #3068 |
Well, kind of, it still says in the documentations it is accepted but this is hard to fix, the assert message is clear so now it is immediately clear what to do, so fixed-enough. |
The
widgets.motion.plot_motion()
function asserts thatax
andaxes
isNone
here but the documentation says these should be accepted inputs.Is there a reason for this? Happy to open a PR to make the function support
ax
/axes
arguments if not.Also the latest docs have a number of references to
si.load_motion_info
andsi.plot_motion
but it appears these have since moved, also happy to open PR ASAP but leaving here as don't want to forget.The text was updated successfully, but these errors were encountered: