Re:Sorting Visualizations
by microcolonel on Saturday October 07, 2017 @06:58PM
(#15426140)
> there might even be a cultural bias at play,
Nope, thankfully no cultural bias in the distinction of hues and shades (and especially gradients), only in the number of standard words to describe them. This makes it easier to be sure of how swell viridis/inferno are.
Re:Sorting Visualizations
by reikonomusha on Saturday October 07, 2017 @12:54PM
(#15424519)
Sorting is about relative distance anyway. “Am I closer than you to negative infinity?” Why does having absolute perception matter? (Indeed, all but radix sort use comparison-based strategies. There’s some notion of a “less than” operation being used to make decisions.)
Viridis is useful for scientific plots where scale perception is important in making a good conclusion. I don’t think demonstrating sorting requires the same perception.
One real problem in using the hue component of HSL is that it wraps around perceptually by design. There's no "greatest" or "least" hue. And the ordering isn't exactly intuitive because we don't perceive colors based on the order of their respective wavelengths on the EM spectrum. Varying the saturation or luminance component while keeping the other two constant makes it much easier to perceive the relationship of two colors at a glance. Or just take a gradient between two appropriately contrasting colors which is exactly what viridis is about.
Re:Sorting Visualizations
by sillysaurus3 on Saturday October 07, 2017 @11:17AM
(#15424082)
Nit: "distance" in color space is fiendishly difficult to define. It's not as simple as treating RGB as cartesian coordinates and computing the distance algorithm.
So, yes, everything you said, and then some.
[1] https://visual.ly/blog/rainbow-color-scales/
[2] https://cran.r-project.org/web/packages/viridis/vignettes/in...
Edit:
Here's my demo, in Viridis: http://gph.is/2xZnKxl
(Generated in ipython + numpy + matplotlib + seaborn)