Skip to content

fix(facet): skip tick-label padding when axis text is blank#1079

Merged
has2k1 merged 1 commit into
mainfrom
fix/blank-text-tick-pad
Jun 15, 2026
Merged

fix(facet): skip tick-label padding when axis text is blank#1079
has2k1 merged 1 commit into
mainfrom
fix/blank-text-tick-pad

Conversation

@has2k1

@has2k1 has2k1 commented Jun 15, 2026

Copy link
Copy Markdown
Owner

theme(text=element_blank()) removes the specific axis-text themeables, so theme.get_margin('axis_text_x') resolves to None and led to an exception.

Solution is to guard each axis with theme.T.is_blank(...).

theme(text=element_blank()) removes the specific axis-text themeables,
so theme.get_margin('axis_text_x') resolves to None and
set_limits_breaks_and_labels crashed on None.pt. Guard each axis with
theme.T.is_blank(...) and skip tick_params when the axis text is blank
(it is not drawn, so the pad is irrelevant).
@has2k1 has2k1 merged commit 17eeeb6 into main Jun 15, 2026
10 checks passed
@has2k1 has2k1 deleted the fix/blank-text-tick-pad branch June 15, 2026 19:44
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