Title: Add inaxes method to FigureCanvas to check whether point is in an axes. by lkjell · Pull Request #9845 · matplotlib/matplotlib · GitHub
Open Graph Title: Add inaxes method to FigureCanvas to check whether point is in an axes. by lkjell · Pull Request #9845 · matplotlib/matplotlib
X Title: Add inaxes method to FigureCanvas to check whether point is in an axes. by lkjell · Pull Request #9845 · matplotlib/matplotlib
Description: Add inaxes method to FigureCanvas to check whether point is in an axes. Return the top-most axes if found, else None. PR Summary An alternative way to get an axes given (x,y) coordinate is to create a LocationEvent and use the inaxes attribute. However, instantiate LocationEvent may trigger axes_enter_event and axes_leave_event, which is not one often would like to do. With this method a new way to find the axes without triggering axes_enter_event and axes_leave_event. From issue #9821. PR Checklist Has Pytest style unit tests [x ] Code is PEP 8 compliant New features are documented, with examples if plot related [x ] Documentation is sphinx and numpydoc compliant [x ] Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there) Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way
Open Graph Description: Add inaxes method to FigureCanvas to check whether point is in an axes. Return the top-most axes if found, else None. PR Summary An alternative way to get an axes given (x,y) coordinate is to cr...
X Description: Add inaxes method to FigureCanvas to check whether point is in an axes. Return the top-most axes if found, else None. PR Summary An alternative way to get an axes given (x,y) coordinate is to cr...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/9845
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:19f16949-8bb5-37ab-e4b0-3238bd457d39 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9FDE:4EA7A:37D10D:4D1F90:6A57CE26 |
| html-safe-nonce | 5fe3f891c3bb0108599782070bfbb9ec3073e7ec19de000955113f98fc28de2d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RkRFOjRFQTdBOjM3RDEwRDo0RDFGOTA6NkE1N0NFMjYiLCJ2aXNpdG9yX2lkIjoiNTMzNzc2Mjk1MzU4MDkwNzkwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | eac0b0442af4624309807fc37d4f9320beef95d33e51a791388a4890cf132544 |
| hovercard-subject-tag | pull_request:154466732 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/matplotlib/matplotlib/pull/9845/files |
| twitter:image | https://avatars.githubusercontent.com/u/6495040?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/6495040?s=400&v=4 |
| og:image:alt | Add inaxes method to FigureCanvas to check whether point is in an axes. Return the top-most axes if found, else None. PR Summary An alternative way to get an axes given (x,y) coordinate is to cr... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5bf9f84655de1d0e9aa064cd3b2bc9703556c68ae53b94e21b872b7e9f1f7cc1 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f76ee5bea8be15c2aede06f855f5c4c808f6eaf5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width