Skip to content

FIX: use axis lines tight bbox within axis artist tight bbox#31628

Open
rcomer wants to merge 1 commit intomatplotlib:mainfrom
rcomer:axisartist-tightbbox
Open

FIX: use axis lines tight bbox within axis artist tight bbox#31628
rcomer wants to merge 1 commit intomatplotlib:mainfrom
rcomer:axisartist-tightbbox

Conversation

@rcomer
Copy link
Copy Markdown
Member

@rcomer rcomer commented May 7, 2026

PR summary

Fixes #31622. Since the axis lines appear to be clipped to the axes, we should use their tight bounding box instead of their window extent in their parent's tight bounding box. The code from the issue now gives

floating_axis_default floating_axis_tight floating_axis_constrained

I welcome any guidance on whether there is a better/simpler example to use for the test. I am not familiar with axis artists.

AI Disclosure

None

PR checklist

@rcomer rcomer added the PR: bugfix Pull requests that fix identified bugs label May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: bugfix Pull requests that fix identified bugs topic: mpl_toolkit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: tight and constrained layouts honouring invisible parts of floating_axis

1 participant