-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Moving get_ax and do_event to testing #7372
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
👍 They are not importable because some packings of mpl strip off the the |
That's totally reasonable. Just wanted to make sure I wasn't missing something big w.r.t. using these functions externally. For instance, will I need to have configured an interactive backend to get them to work? |
Doesn't look like it. That docstring is also very wrong... |
Yep, it could use some help. 😄 Alright, I've put this on my ToDos. Can't promise I'll get to it soon, but I do plan to come back to it. |
lib/matplotlib/testing/widgets.py doesn't exist, so to which file should i move these methods? |
@SidharthBansal Please make that file. |
I suggest taking the commits in #9905, rebasing them on master, pushing to a branch on your fork and then leaving a note on that 9905 that you have taken over the work. |
…widgets. Thanks @dakotablair for their work in matplotlib#9905 Closes matplotlib#9905 Co-authored-by: @dakotablair
I'm wanting to do some testing in a library that uses matplotlib. In particular, this library is using matplotlib native widgets.
There appear to be some utility functions used for testing called
get_ax
anddo_event
. These seem like they would be very handy for widget tests like the ones proposed above.However, I'm not entirely clear on how they can access them ATM as they don't seem to be importable and they are not in
testing
currently. Would it be possible to move them totesting
so they could be used externally? Related would that actually make sense/be usable for my use case?The text was updated successfully, but these errors were encountered: