Skip to content

Fix rc init when matplotlib is imported first - #569

Merged
cvanelteren merged 2 commits into
mainfrom
fix/issue-568-import-order
Feb 7, 2026
Merged

Fix rc init when matplotlib is imported first#569
cvanelteren merged 2 commits into
mainfrom
fix/issue-568-import-order

Conversation

@cvanelteren

@cvanelteren cvanelteren commented Feb 7, 2026

Copy link
Copy Markdown
Collaborator

This fixes issue #568 where importing matplotlib.pyplot before ultraplot could make rc initialization fail with axes.titlesize set to med-large validation errors. The root cause was font-size validator patching that relied on validator object identity, which is not stable across Matplotlib builds; this patch adds behavior-based detection so relevant size validators are consistently routed through UltraPlot custom fontsize validation. It also expands subprocess regression coverage in test_config.py to enforce the problematic import order and verify both general rc mutation and med-large assignments across multiple font-size keys.

@cvanelteren
cvanelteren merged commit 3687f94 into main Feb 7, 2026
17 of 25 checks passed
@cvanelteren
cvanelteren deleted the fix/issue-568-import-order branch February 7, 2026 23:03
K-Mirembe-Mercy pushed a commit to K-Mirembe-Mercy/UltraPlot that referenced this pull request Mar 22, 2026
* Fix rc init when matplotlib is imported first
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