Title: FIX/API: `fig.canvas.draw` always updates internal state by tacaswell · Pull Request #18408 · matplotlib/matplotlib · GitHub
Open Graph Title: FIX/API: `fig.canvas.draw` always updates internal state by tacaswell · Pull Request #18408 · matplotlib/matplotlib
X Title: FIX/API: `fig.canvas.draw` always updates internal state by tacaswell · Pull Request #18408 · matplotlib/matplotlib
Description: Previously the non-interactive backends, other than Agg, did not define draw methods and fell back to the base no-op version. However, we have been documenting that the correct way to update the various internal state we keep (run tight/constrained layouts, auto limits, text size/position, ...), this is now a bug due to our suggested usage drifting. closes #18407 I could be convinced that this should actually be backported for 3.3.2 I'm mixed if these needs an API change note or not. PR Summary PR Checklist Has pytest style unit tests (and pytest passes). Is Flake 8 compliant (run flake8 on changed files to check). Conforms to Matplotlib style conventions (install flake8-docstrings and pydocstyle<4 and run flake8 --docstring-convention=all).
Open Graph Description: Previously the non-interactive backends, other than Agg, did not define draw methods and fell back to the base no-op version. However, we have been documenting that the correct way to update the va...
X Description: Previously the non-interactive backends, other than Agg, did not define draw methods and fell back to the base no-op version. However, we have been documenting that the correct way to update the va...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/18408
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:f2bdbf4f-55c1-5882-7000-3842ea9f9e6a |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E658:6E56C:134BD6D:19BBF09:6A542A47 |
| html-safe-nonce | bd1a032fcb49a647b6fb466d6effed92fa8f6d44a90545a0e83931b73d52df3e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjU4OjZFNTZDOjEzNEJENkQ6MTlCQkYwOTo2QTU0MkE0NyIsInZpc2l0b3JfaWQiOiI1NTA0ODcyOTg5NjYwMDMxNTU5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ddc9494985ffc1a32d45217d48d7e1e161c4a72aeab410fe748eb90b584334b9 |
| hovercard-subject-tag | pull_request:480026295 |
| 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/18408/files |
| twitter:image | https://avatars.githubusercontent.com/u/199813?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/199813?s=400&v=4 |
| og:image:alt | Previously the non-interactive backends, other than Agg, did not define draw methods and fell back to the base no-op version. However, we have been documenting that the correct way to update the va... |
| 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 | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width