Title: Fix issue with shared x-axis resetting when calling cla() on shared axes by ydotwang · Pull Request #28697 · matplotlib/matplotlib · GitHub
Open Graph Title: Fix issue with shared x-axis resetting when calling cla() on shared axes by ydotwang · Pull Request #28697 · matplotlib/matplotlib
X Title: Fix issue with shared x-axis resetting when calling cla() on shared axes by ydotwang · Pull Request #28697 · matplotlib/matplotlib
Description: PR summary Fix bidirectional axis sharing in sharex, sharey, and __clear methods Description: This pull request addresses issues related to the handling of shared axes (sharex and sharey) in Matplotlib, particularly in scenarios involving clearing of axes. Summary of Changes: Bidirectional Sharing: The sharex and sharey methods have been updated to ensure bidirectional sharing of axes. Previously, when axis A shared its x-axis with axis B, changes to B would not affect A. This has been corrected by ensuring that B also shares its x-axis back with A. Impact: These changes resolve the issue where shared axes would not behave symmetrically, leading to unexpected behavior when clearing axes or working with inverted axes. The updates ensure consistent and predictable behavior in shared axes scenarios. Before PR: After PR: Testing: Existing tests related to shared axes should be reviewed to ensure they cover these scenarios. New tests can be added to specifically verify bidirectional sharing and correct inversion handling during clearing. This pull request ensures that Matplotlib handles shared axes in a robust manner, improving the overall user experience when working with subplots and synchronized axes. PR checklist "closes #27825" is in the body of the PR description to #27825 new and changed code is tested
Open Graph Description: PR summary Fix bidirectional axis sharing in sharex, sharey, and __clear methods Description: This pull request addresses issues related to the handling of shared axes (sharex and sharey) in Matpl...
X Description: PR summary Fix bidirectional axis sharing in sharex, sharey, and __clear methods Description: This pull request addresses issues related to the handling of shared axes (sharex and sharey) in Matpl...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/28697
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:604edd13-133e-ddbf-afd8-f11009ae8518 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CEBE:117213:2A88C9C:397ACA2:6A53B24B |
| html-safe-nonce | 2e38ac5b09d3614a8aac09df9c991a39a8b635eb3b2f1191ecba4f47f8f51777 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRUJFOjExNzIxMzoyQTg4QzlDOjM5N0FDQTI6NkE1M0IyNEIiLCJ2aXNpdG9yX2lkIjoiNzg2Nzk1MDM4MDg3Mjg3MjUyMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 47ca22ff4dd49f7e734a467af6defeb25d14314de453ae3351f50ebcd591e9be |
| hovercard-subject-tag | pull_request:2012927266 |
| 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/28697/files |
| twitter:image | https://avatars.githubusercontent.com/u/116990040?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/116990040?s=400&v=4 |
| og:image:alt | PR summary Fix bidirectional axis sharing in sharex, sharey, and __clear methods Description: This pull request addresses issues related to the handling of shared axes (sharex and sharey) in Matpl... |
| 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 |
| 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