Skip to content

Conversation

@cvanelteren
Copy link
Collaborator

@cvanelteren cvanelteren commented Feb 1, 2026

This PR refactors the colorbar logic to remove it from the base and figure class to ensure that we focus our efforts on the logic rather than mixing axis handling with colorbar handling. It achieves this by introducing a new module colorbar and with it two essential classes UltraColorbar and UltraColorbar layout.

This PR will mark the first step towards this, and the legend object will need a similar rework.

@cvanelteren cvanelteren changed the title PR message: This PR stabilizes pytest‑mpl image comparisons by pinning a minimal Matplotlib style in pyproject.toml that only sets the seaborn color cycle used by our baselines, avoiding unintended style resets that were forcing the classic cycle and DPI changes. It also simplifies the test fixture cleanup so each test starts from a clean rc state without leaking settings across workers, which prevents parallel runs from drifting in color and size.Fix/pytest mpl style Internal: Refactor colorbar to decouple from axis. Introduces UltraColorbar and UltraColorbarLayout Feb 1, 2026
@cvanelteren
Copy link
Collaborator Author

Failing tests are not related to the PR (directly -- there is a slight layout drift that I still need to address).

@cvanelteren
Copy link
Collaborator Author

For example:
image

@cvanelteren cvanelteren requested a review from beckermr February 1, 2026 22:12
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.

2 participants