4 ms·
We may be approaching this with different levels of expertise. No, Viridis is not strictly better. You are assuming a particular (simple) tasks, i.e., what is
by an1sotropy 5y ago
We may be approaching this with different levels of expertise.
No, Viridis is not strictly better. You are assuming a particular (simple) tasks, i.e., what is the question about the data that you want the visualization to help answer.
Here is a task for which Viridis is not strictly better: show me (1) all places in the data where there the gradient magnitude exceeds some small threshold, while also permitting (2) some appreciation of the over-all form of things.
What these requirements ask of the colormap, considered as a path through perceptual colorspace, respectively: (1) always have a high velocity, and be as long a path as possible, while (2) not overlapping on itself in an ambiguous way.
The "rainbow" colormap is better at (1) than Viridis because it is simply a longer path through colorspace. It gets that extra length in part by not caring about being monotonic in luminance. If (2) was the only thing that mattered, Viridis might be better, but for lots of technical settings, the over-all form of things are already known, and it is the small fluctuations that are interesting to show, so "rainbow" can be better.
Now, you could take things to an extreme and say, okay, if (1) is the task, than here's your colormap: a high-frequency sinusoid. Then the visualization is essentially a huge mess of isocontours. Which is terrible for (2). But "rainbow" is more legible than that, and is going to be better than Viridis for some weightings of (1) and (2).
My points are:
- blanket statements like "Viridis is better" are both simplistic and arrogant, because neither you nor I are in a position to know what exactly the task is in a given visualization, and different tasks merit consideration of different colormaps
- the popularity of blanket statements like "Viridis is better" give people who haven't done as much research in data visualization the impression that vis is an adhoc collection of simple strategies, when it is far from that.