Title: [MNT]: Consolidate axis sharing logic · Issue #32520 · matplotlib/matplotlib · GitHub
Open Graph Title: [MNT]: Consolidate axis sharing logic · Issue #32520 · matplotlib/matplotlib
X Title: [MNT]: Consolidate axis sharing logic · Issue #32520 · matplotlib/matplotlib
Description: Summary Sharing information is stored redundantly: in the grouper class attribute Axes._shared_axes['x']. The grouper stores the shared axes in a list without a hierarchy. in the _sharex attribute of Axes. This is asymmetic in that the o...
Open Graph Description: Summary Sharing information is stored redundantly: in the grouper class attribute Axes._shared_axes['x']. The grouper stores the shared axes in a list without a hierarchy. in the _sharex attribute ...
X Description: Summary Sharing information is stored redundantly: in the grouper class attribute Axes._shared_axes['x']. The grouper stores the shared axes in a list without a hierarchy. in the _sharex at...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/32520
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[MNT]: Consolidate axis sharing logic","articleBody":"### Summary\n\nSharing information is stored redundantly:\n- in the grouper class attribute `Axes._shared_axes['x']`. The grouper stores the shared axes in a list without a hierarchy.\n- in the `_sharex` attribute of Axes. This is asymmetic in that the only one of the Axes gets the `_sharex` attribute set, resulting in a parent-child relation.\n\n\n\n### Proposed fix\n\nFrom https://github.com/matplotlib/matplotlib/issues/30159#issuecomment-3539310071\n\n> I think a reasonable incremental improvement would be to remove the `Axes._sharex/y` state. It's only [used in very few places](https://github.com/search?q=repo%3Amatplotlib/matplotlib%20_sharex&type=code) and can more reasonably be handled via the grouper `Axes._shared_axes['x']`.\n\nStill to be clarified: Do we need the parent-child relation in any way? - From a quick look I don't think so.","author":{"url":"https://github.com/timhoffm","@type":"Person","name":"timhoffm"},"datePublished":"2026-10-22T14:03:29Z","url":"https://github.com/matplotlib/matplotlib/issues/32520"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:243dc493-8619-20d5-a75a-26a51cd7281e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EAEA:17CA31:E0DC4E:12DC681:6B064EE6 |
| html-safe-nonce | 8037a35008eb274ff165ce2bdd98e9d4eae1ce25f81fed2690ac6fcacdd69d17 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQUVBOjE3Q0EzMTpFMERDNEU6MTJEQzY4MTo2QjA2NEVFNiIsInZpc2l0b3JfaWQiOiI1MzYwOTk1NTcwOTg1MzU3MDMwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1e4594d7722729cf487851af4c5ec7f232462c7d6051c50f76b8e13e7f30a0e2 |
| hovercard-subject-tag | issue:5980881792 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/matplotlib/matplotlib/32520/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6888fc5d7b6e295c656ed11e645115ac49772baa1b7c4a2471dbf3db8cc4e3db/matplotlib/matplotlib/issues/32520 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6888fc5d7b6e295c656ed11e645115ac49772baa1b7c4a2471dbf3db8cc4e3db/matplotlib/matplotlib/issues/32520 |
| og:image:alt | Summary Sharing information is stored redundantly: in the grouper class attribute Axes._shared_axes['x']. The grouper stores the shared axes in a list without a hierarchy. in the _sharex attribute ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | timhoffm |
| hostname | github.com |
| expected-hostname | github.com |
| None | 772b6997ca4daa0428dd49a25d76052e765555ae560fe9c88517eb828bbd861e |
| turbo-cache-control | no-preview |
| 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 | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f1f9a08f7c769a37f1dfc18ad43d463c222a7eea |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width