Skip to content

Fix the ordering of initializing lut due to change in mpl version - #849

Merged
cvanelteren merged 4 commits into
mainfrom
fix/lut-init-order
Oct 21, 2026
Merged

cvanelteren merged 4 commits into
mainfrom
fix/lut-init-order

Conversation

@cvanelteren

@cvanelteren cvanelteren commented Oct 19, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #848
Fixes as regression in UltraPlot due to major version change in mpl. MPL internally refactorered the initializion of colormaps such that set_extremes no longer updates the lut. We have set initialized too early, then updating the lut. This PR fixes it by moving that logic up, fixing the situation in both 3.11 and before.

@codecov

codecov Bot commented Oct 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@cvanelteren
cvanelteren marked this pull request as ready for review October 19, 2026 22:09
@cvanelteren

Copy link
Copy Markdown
Collaborator Author

Ah nvm sorry for the ping @munechika-koyo this is not fixed yet. For example this is wrong
image

@cvanelteren
cvanelteren marked this pull request as draft October 19, 2026 23:38
@cvanelteren

Copy link
Copy Markdown
Collaborator Author
image ok it's looking good again

@cvanelteren
cvanelteren marked this pull request as ready for review October 19, 2026 23:59
@cvanelteren
cvanelteren merged commit d2f9e1a into main Oct 21, 2026
7 of 8 checks passed
@cvanelteren
cvanelteren deleted the fix/lut-init-order branch October 21, 2026 23:51
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.

NaN values appear nearly black with fire on Matplotlib 3.11

1 participant