Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Change default colormap for model scalars and displacement volumes #989
There are 4 distinct colors (red, green, blue, purple) in rainbow colormap, which might be helpful, as it provides iso-lines/surfaces. However, the iso-values are usually just randomly assigned (by scaling the colormap to the scalar range), highlighting lines/surfaces that are not particularly interesting.
Viridis provides continuous transition, so there are no specific iso-values that are displayed more prominently.
Due to this, viridis seems to be a more generic colormap, which I agree that seems more suitable as a default colormap than rainbow.
I would slightly prefer plasma (another smoothly transitioning colormap), as its colors are associated with cold-to-hot temperature; while viridis transitions between two neutral colors (purple-to-yellow).
'R' programming language went with viridis (https://www.r-bloggers.com/using-the-new-viridis-colormap-in-r-thanks-to-simon-garnier/), so it might be one more reason to choose the same (or not, to be more distinctive?).
Matplotlib also uses Viridis as default. Originally they had only the other three, but apparently people prefer Viridis for some reason. They have all been designed on the same principles anyway.
I agree that Plasma might be a bit closer to the hot-cold idea but not because of the extremes, which are very similar, but because it goes through red/orange instead of green.
Do you think it'd be a good idea to add this default to the PET and DTI presets?