Skip to content

Conversation

@mx-moth
Copy link
Contributor

@mx-moth mx-moth commented Dec 8, 2025

The default colourmap for plotting functions in emsarray was set to "jet" for historical reasons. These reasons are no longer relevant.

The matplotlib default of "viridis" is an improvement over "jet" in a number of ways. Users can customise the default colourmap used by matplotlib using rcParams. The way emsarray was overriding this means the users defaults would be ignored if customised.

The example plots in the documentation have been updated to reflect this change.

@mx-moth mx-moth self-assigned this Dec 8, 2025
This will fall back to matplotlibs configured default, which is usually
'viridis' but can be customised by users. "jet" is a poor choice for
many reasons.
It reverted the styling to "classic", probably to prevent massive churn
in projects using pytest-mpl when matplotlib changed its defaults.
However, the default cmap in "classic" mode is "jet" - the colormap we
are trying to avoid!
@mx-moth mx-moth merged commit 52b899d into main Dec 8, 2025
15 checks passed
@mx-moth mx-moth deleted the use-default-cmap branch December 8, 2025 04:20
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