Skip to content

Fix double-counted margins for shared spanning labels at space=0#584

Merged
cvanelteren merged 1 commit intomainfrom
fix/space0-shared-label-margins
Feb 13, 2026
Merged

Fix double-counted margins for shared spanning labels at space=0#584
cvanelteren merged 1 commit intomainfrom
fix/space0-shared-label-margins

Conversation

@cvanelteren
Copy link
Collaborator

This fix addresses a layout regression where figures with space=0 and shared/spanning axis labels (xlabel/ylabel) reserved too much margin on the left and bottom edges. The root cause was that spanning figure-level labels were being included in tight-layout calculations while placeholder axis labels were also used to reserve space, effectively counting label extents twice. The patch marks spanning labels as out-of-layout (in_layout=False) so tight layout only accounts for the intended placeholder label extents. A regression test was added to verify spanning labels are excluded from layout accounting and that margins remain compact for space=0 cases.

@cvanelteren cvanelteren enabled auto-merge (squash) February 13, 2026 07:15
@cvanelteren cvanelteren merged commit 1611e37 into main Feb 13, 2026
17 of 25 checks passed
@cvanelteren cvanelteren deleted the fix/space0-shared-label-margins branch February 13, 2026 07: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.

1 participant