Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Merged
cvanelteren merged 1 commit into
mainUltraplot/UltraPlot:mainfrom
fix/space0-shared-label-marginsUltraplot/UltraPlot:fix/space0-shared-label-marginsCopy head branch name to clipboard
Feb 13, 2026
Merged

Fix double-counted margins for shared spanning labels at space=0#584
cvanelteren merged 1 commit into
mainUltraplot/UltraPlot:mainfrom
fix/space0-shared-label-marginsUltraplot/UltraPlot:fix/space0-shared-label-marginsCopy head branch name to clipboard

Conversation

@cvanelteren

Copy link
Copy Markdown
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
K-Mirembe-Mercy pushed a commit to K-Mirembe-Mercy/UltraPlot that referenced this pull request Mar 22, 2026
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.