FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[MNT]: Consolidate axis sharing logic · Issue #32520 · matplotlib/matplotlib · GitHub

Repository navigation

[MNT]: Consolidate axis sharing logic #32520

Open

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 only one of the Axes gets the _sharex attribute set, resulting in a parent-child relation.

Proposed fix

From #30159 (comment)

I think a reasonable incremental improvement would be to remove the Axes._sharex/y state. It's only used in very few places and can more reasonably be handled via the grouper Axes._shared_axes['x'].

Still to be clarified: Do we need the parent-child relation in any way? - From a quick look I don't think so.

Activity

  1. changed the title [-][MNT]: Consolidate sharing logic[/-] [+][MNT]: Consolidate axis sharing logic[/+] on Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL