Skip to content

Fix locator/formatter setting when removing shared Axes - #13983

Merged
tacaswell merged 2 commits into
matplotlib:masterfrom
dstansby:fmt-reset
Apr 20, 2019
Merged

tacaswell merged 2 commits into
matplotlib:masterfrom
dstansby:fmt-reset

Conversation

@dstansby

Copy link
Copy Markdown
Member

When a shared Axes was removed from a plot, any other Axes it was shared with had their Axis locators/formatters set to the locator/formatter on the removed Axes. This PR makes sure that setting only happens if the locator/formatter has previously been manually set. This allows the locator/formatter to be automatically set in the future by e.g. units being plotted.

Fixes #12853

@dstansby dstansby added this to the v3.2.0 milestone Apr 18, 2019
@tacaswell
tacaswell merged commit 31a103a into matplotlib:master Apr 20, 2019
@tacaswell

Copy link
Copy Markdown
Member

Thanks!

To some degree this is adding epicycles to an already overly-complicated system, but the full re-write is not imminent so this is the practical thing to do.

@dstansby
dstansby deleted the fmt-reset branch April 21, 2019 09:25
davidgegiya added a commit to davidgegiya/agent-orchestrator that referenced this pull request Nov 9, 2026
…ng axes from using unit-provided formatters

Pin 76db50151a65927c19c83a8c3c195c87dbcc0556 and its regression selectors for reproducible runs.

Source: matplotlib/matplotlib#13983
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove()ing a shared axes prevents the remaining axes from using unit-provided formatters

3 participants