Skip to content

Adjust to the Text Rendering Change in Matplotlib 3.11.0#1075

Merged
has2k1 merged 7 commits into
mainfrom
mp311-changes
Jun 13, 2026
Merged

Adjust to the Text Rendering Change in Matplotlib 3.11.0#1075
has2k1 merged 7 commits into
mainfrom
mp311-changes

Conversation

@has2k1

@has2k1 has2k1 commented Jun 13, 2026

Copy link
Copy Markdown
Owner

has2k1 added 7 commits June 12, 2026 14:37
A scalar (int, float or str) passed to factor() within an aes()
expression is now wrapped in a list before creating the Categorical.
Also raise the numpy and scipy minimums to 1.25 and 1.15, and add the
Python 3.14 classifier.
Using RcParams instead of a plain dict gets key and value
validation at assignment time and better typing (RcKeyType).
This also removes the obsoletes tk.pythoninspect workaround when
copying rcParams in theme_matplotlib.
Matplotlib 3.11 changed numeric linespacing semantics: it now fixes
every line's box to a multiple of the font's typographic height,
affecting single-line text too. Adopt the new "normal" default, which
derives spacing from the font's own metrics, and drop the strip_text
overrides.
Size secondary text (axis, legend, caption, footer, strip) relative to
base_size at 0.8x and the title at 1.2x, derive legend_key_size from
the text size, lighten the strip background, and align base text
margins with the other themes.
The text rendering overhaul in matplotlib 3.11 (hinting factor
dropped, line height derived from the font) changes text metrics
in rendered plots. Remove the now-deprecated text.hinting_factor
rcParam pin and regenerate the affected baseline images.
@has2k1 has2k1 merged commit d7b9533 into main Jun 13, 2026
13 of 14 checks passed
@has2k1 has2k1 deleted the mp311-changes branch June 13, 2026 11:08
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