Skip to content

PR commit Issue 30159 for fixing Axes.clear() #30354

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mrinalcodez
Copy link

@mrinalcodez mrinalcodez commented Jul 24, 2025

PR summary

Quick fix for shared axis warning during .clear()

This PR implements a minimal, targeted fix for issue #30159, where calling .clear() on a shared axes — particularly with log scale — results in:

  • Limits being reset to (0, 1), which is invalid in log scale
  • Warnings emitted due to improper propagation of limits

This patch does a quick fix for the warnings in the issue but does not fully implement the proposed fix in issue #28851

What does this fix do?

  • Prevents resetting axis limits and scale in .clear() if the axis is shared
  • Ensures .clear() only clears data-like elements (lines, text, collections), not layout or shared state

What this does not do?

  • This does not define long-term .clear() semantics

PR checklist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Needs review
Development

Successfully merging this pull request may close these issues.

[Bug]: Calling axes.clear() on a shared y or x-axis issues an unexpected warning with log scale
1 participant
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy