Skip to content

Conversation

mgeier
Copy link
Member

@mgeier mgeier commented Sep 2, 2025

This also changes "alpha" to a slightly more extreme value. We could tune this for each colormap individually.

Alternatively, we could also manually select "over" and "under" colors for each colormap.

@mgeier
Copy link
Member Author

mgeier commented Sep 2, 2025

The clipped colors can be seen e.g. here: https://sfs-python--191.org.readthedocs.build/en/191/sfs.td.nfchoa.html

For comparison, an older release: https://sfs-python.readthedocs.io/en/0.6.2/sfs.td.nfchoa.html

For these time-domain plots, most of the area has very low level and therefore has the "under" color.

I'm not sure yet whether that's a good thing or not.

fs446 and others added 7 commits September 3, 2025 17:04
proposed alternative:
- instead of having same alpha for both under and over we use individual color weights and alphas for the under/over color
- by that the extreme colors can be better adapted towards the individual colormaps, for viridis and cividis to me this is not needed but
- inferno, magma, plasma colormaps could then be handled much nicer, if people like to add them one day
- the colorwarm URL link did not work, changed to an exisiting one
@mgeier
Copy link
Member Author

mgeier commented Sep 24, 2025

I have added a few commits with a new way to calculate the under/over colors.

@fs446 fs446 merged commit 078103e into sfstoolbox:master Sep 24, 2025
7 checks passed
@fs446
Copy link
Member

fs446 commented Sep 24, 2025

Nice work, thank you very much!

@mgeier mgeier deleted the more-clipped-colormaps branch September 25, 2025 18:04
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