Skip to content

Fix suptitle top spacing for center/top vertical alignment#574

Merged
cvanelteren merged 1 commit intomainfrom
fix/suptitle-top-spacing
Feb 9, 2026
Merged

Fix suptitle top spacing for center/top vertical alignment#574
cvanelteren merged 1 commit intomainfrom
fix/suptitle-top-spacing

Conversation

@cvanelteren
Copy link
Collaborator

This fixes a suptitle layout regression where suptitle_kw vertical alignments (va='center' or va='top') could let the suptitle overlap top content. The alignment code now computes the target top offset from surrounding content and then positions the suptitle so its bbox bottom lands at that offset, preserving spacing regardless of alignment. It also adds a regression test covering va in {'bottom','center','top'} to enforce consistent top spacing. Closes #573.

@cvanelteren
Copy link
Collaborator Author

Still need to fix the regression of that one test.

@cvanelteren cvanelteren closed this Feb 9, 2026
@cvanelteren cvanelteren reopened this Feb 9, 2026
@cvanelteren cvanelteren merged commit 01c1edb into main Feb 9, 2026
16 of 26 checks passed
@cvanelteren cvanelteren deleted the fix/suptitle-top-spacing branch February 9, 2026 01:45
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.

Suptitle can overlap top content when suptitle_kw va is center/top

1 participant