Title: In the new/simplified backend API, don't customize draw_if_interactive. by anntzer · Pull Request #23291 · matplotlib/matplotlib · GitHub
Open Graph Title: In the new/simplified backend API, don't customize draw_if_interactive. by anntzer · Pull Request #23291 · matplotlib/matplotlib
X Title: In the new/simplified backend API, don't customize draw_if_interactive. by anntzer · Pull Request #23291 · matplotlib/matplotlib
Description: The customization point is not really needed (it can go into the canvas constructor or manager.show or a few other places), but removing support for it would be a bit tricky if not coupled with the introduction of a new API (manager_class). This way, we can simply say "if you want to use the new API, then you cannot customize draw_if_interactive". backend_template gets updated without deprecation as the point of that backend is really to be documentation for what a backend module is; moreover, putting a deprecation on new_figure_manager (for example) would actually be counter-productive as pyplot would still try to call that function (and thus emit a warning, even though the backend itself is not deprecated). Closes #23105. See that PR for a more detailed discussion. Once merged, the documentation added at #23101 will need a slight tweak as well. PR Summary PR Checklist Tests and Styling Has pytest style unit tests (and pytest passes). Is Flake 8 compliant (install flake8-docstrings and run flake8 --docstring-convention=all). Documentation New features are documented, with examples if plot related. New features have an entry in doc/users/next_whats_new/ (follow instructions in README.rst there). API changes documented in doc/api/next_api_changes/ (follow instructions in README.rst there). Documentation is sphinx and numpydoc compliant (the docs should build without error).
Open Graph Description: The customization point is not really needed (it can go into the canvas constructor or manager.show or a few other places), but removing support for it would be a bit tricky if not coupled with the...
X Description: The customization point is not really needed (it can go into the canvas constructor or manager.show or a few other places), but removing support for it would be a bit tricky if not coupled with the...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/23291
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:4f1ead56-484d-bd20-92c6-47ad13f233f7 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C20C:1D4F69:2417DF2:30FD04A:6A539CC0 |
| html-safe-nonce | a2131ccb532b194f4f2fa245be3d5e42f36180a384484e943667edcf282fd273 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjBDOjFENEY2OToyNDE3REYyOjMwRkQwNEE6NkE1MzlDQzAiLCJ2aXNpdG9yX2lkIjoiOTE4NjgyNjA2NzQyNzY5NTgwOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1b32352df44ae14149d7591f2dd8d3e8395e783618bf08020c7b5a4c4039aaf7 |
| hovercard-subject-tag | pull_request:969853901 |
| 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/23291/files |
| twitter:image | https://avatars.githubusercontent.com/u/1322974?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1322974?s=400&v=4 |
| og:image:alt | The customization point is not really needed (it can go into the canvas constructor or manager.show or a few other places), but removing support for it would be a bit tricky if not coupled with the... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width