MakieOrg / Makie.jl

Interactive data visualizations and plotting in Julia
https://docs.makie.org/stable
MIT License
2.33k stars 292 forks source link

Possibility to set low or high bound of colorrange and let the other one be adaptive #3992

Open felixcremer opened 1 week ago

felixcremer commented 1 week ago

Feature description

It would be good to be able to set only one of the bounds of the colorrange and let the other one be adaptive. We had a discussion on slack and one possible API would be to use colorrange=(0, nothing) to set the lower bound of the colorrange and let the upper be adaptive and colorrange=(nothing, 100) to set the upper bound and let the lower bound be adaptive. @jkrumbiegel mentioned that nothing could be replaced here by automatic.

asinghvi17 commented 5 days ago

I have a PR up which introduces an interface that does exactly this. It needs some tests and probably more use case examples though. Will link to it in the morning.