Title: Moving get_ax and do_event to testing · Issue #7372 · matplotlib/matplotlib · GitHub
Open Graph Title: Moving get_ax and do_event to testing · Issue #7372 · matplotlib/matplotlib
X Title: Moving get_ax and do_event to testing · Issue #7372 · matplotlib/matplotlib
Description: 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...
Open Graph Description: 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 g...
X Description: 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 call...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/7372
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Moving get_ax and do_event to testing","articleBody":"I'm wanting to do some testing in a library that uses matplotlib. In particular, this library is using matplotlib native widgets.\r\n\r\nThere appear to be some [utility functions]( https://github.com/matplotlib/matplotlib/blob/6e24047bdcdc0f35d282c27d62324e52fa7a7afb/lib/matplotlib/tests/test_widgets.py#L17-L76 ) 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.\r\n\r\nHowever, 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?","author":{"url":"https://github.com/jakirkham","@type":"Person","name":"jakirkham"},"datePublished":"2016-11-01T15:23:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/7372/matplotlib/issues/7372"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6f9e6379-453c-69e9-af17-23cfad25c630 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CD3A:273A67:37D67A6:4CE6693:6A54B874 |
| html-safe-nonce | db38d6bcbad299a65f1471504af522d833aeca8d8bbd945f218c594b61313927 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDNBOjI3M0E2NzozN0Q2N0E2OjRDRTY2OTM6NkE1NEI4NzQiLCJ2aXNpdG9yX2lkIjoiNjgyOTYyNTY3Mzc1NTY1OTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 09d7aa6d33234c7797acedcc19e3eb677fc1925b8d652c0ef79497ba44f8a69f |
| hovercard-subject-tag | issue:186562165 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/7372/issue_layout |
| twitter:image | https://opengraph.githubassets.com/53acf4442a2aa7d912c2244dd5c6035d4db1375301d4c5b4a0eeec446309fecd/matplotlib/matplotlib/issues/7372 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/53acf4442a2aa7d912c2244dd5c6035d4db1375301d4c5b4a0eeec446309fecd/matplotlib/matplotlib/issues/7372 |
| og:image:alt | 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 g... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jakirkham |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5d343e1152573ef294b28f54e4a14fb5fdb3a5a1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width