Title: Improve handling of shared axes with specified aspect ratio by efiring · Pull Request #10033 · matplotlib/matplotlib · GitHub
Open Graph Title: Improve handling of shared axes with specified aspect ratio by efiring · Pull Request #10033 · matplotlib/matplotlib
X Title: Improve handling of shared axes with specified aspect ratio by efiring · Pull Request #10033 · matplotlib/matplotlib
Description: This is an attempt to resurrect #8752. I stripped out the parts related to cla() efficiency, thinking that had been handled by #8626, but now I see that the latter was reverted and does not appear to have been revived. I think the Axes initialization slowness problem was attacked from a different angle since then, but I haven't been able to find the PR. In any case, it is possible, but by no means certain, that something like the approach I used in 8752 should go back in. The idea is that cla() is often too blunt an instrument; finer control over what is needed could be added via arguments to the function. In addition to clarifying the handling of aspect ratios with shared axes (see the set_adjustable docstring edit), this adds tracking of twinned axes, and keeps their positions in sync. This solves a bug in which adding a colorbar to a twinned axes previously would leave a mess--the box of the other twin was not being changed to match. Axis sharing works across figures. The "box-forced" adjustable is no longer needed. Sharing both axes requires the use of "box", not "datalim". A new "share" kwarg triggers synchronized setting of aspect ratio and adjustable in Axes within shared axis groups. Added a test for axis sharing with aspect ratio setting. Fixed and updated skew_rects test.
Open Graph Description: This is an attempt to resurrect #8752. I stripped out the parts related to cla() efficiency, thinking that had been handled by #8626, but now I see that the latter was reverted and does not appear...
X Description: This is an attempt to resurrect #8752. I stripped out the parts related to cla() efficiency, thinking that had been handled by #8626, but now I see that the latter was reverted and does not appear...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/10033
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:8911f122-fa1a-e6bd-1dfd-3994d59ed5ed |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D58C:1F2FB0:1B0CE47:23C8112:6A52CE81 |
| html-safe-nonce | e979cee2dd97d5785cb36860c1d6c61a98eb2e9fb1f16560c85fa7d156441a90 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENThDOjFGMkZCMDoxQjBDRTQ3OjIzQzgxMTI6NkE1MkNFODEiLCJ2aXNpdG9yX2lkIjoiNDkwMzcyMTc5NzUxNjcwOTUwNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1e4ad316bf9071fbe03026daacd36b1a577e2b96a4560f4f3035c204fc075afd |
| hovercard-subject-tag | pull_request:158810358 |
| 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/10033/files |
| twitter:image | https://avatars.githubusercontent.com/u/85125?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/85125?s=400&v=4 |
| og:image:alt | This is an attempt to resurrect #8752. I stripped out the parts related to cla() efficiency, thinking that had been handled by #8626, but now I see that the latter was reverted and does not appear... |
| 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