Skip to content

Conversation

@cvanelteren
Copy link
Collaborator

The fix prevents a tight-layout crash by skipping title/abc width measurements when the underlying text artist is detached from a figure, since get_window_extent tries to read fig.dpi and raises when fig is None; with this guard, layout proceeds normally when the artist is attached and avoids the AttributeError when it isn’t.

@cvanelteren cvanelteren enabled auto-merge (squash) January 9, 2026 07:07
@codecov
Copy link

codecov bot commented Jan 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@cvanelteren cvanelteren merged commit d29fa0e into main Jan 9, 2026
25 checks passed
@cvanelteren cvanelteren deleted the fix/abc-tightbbox-guard branch January 9, 2026 08:32
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.

2 participants