You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 and do_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 to testing so they could be used externally? Related would that actually make sense/be usable for my use case?
They are not importable because some packings of mpl strip off the the tests module (there is a lot of binary image data in there).
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?
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.
Activity
tacaswell commentedon Nov 1, 2016
👍
They are not importable because some packings of mpl strip off the the
testsmodule (there is a lot of binary image data in there).jakirkham commentedon Nov 1, 2016
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?
tacaswell commentedon Nov 1, 2016
Doesn't look like it.
That docstring is also very wrong...
jakirkham commentedon Nov 1, 2016
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.
Fix issue matplotlib#7372, move widget functions into matplotlib.test…
SidharthBansal commentedon Apr 4, 2020
lib/matplotlib/testing/widgets.py doesn't exist, so to which file should i move these methods?
tacaswell commentedon Apr 4, 2020
@SidharthBansal Please make that file.
tacaswell commentedon Apr 4, 2020
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.
Fixes matplotlib#7372, move widget functions into matplotlib.testing.…