4 ms·
This is very similar to the 'rainbow' colour map already available in many places, including matplotlib [1]. For people who are looking for maps with increased
by JBorrow 7y ago
This is very similar to the 'rainbow' colour map already available in many places, including matplotlib [1]. For people who are looking for maps with increased dynamic range, diverging colour maps already exist. There are even ones that are made up of _two_ linear colour maps, such as twilight.
This is some ok work by the folks at google, but screams of re-inventing the wheel 'because we're a silicon valley company and we innovate'.
[1] https://matplotlib.org/3.1.0/tutorials/colors/colormaps.html https://matplotlib.org/3.1.0/tutorials/colors/colormaps.html
- deleted 7y ago[deleted]
- deleted 7y ago[deleted]
- robotresearcher 7y agoThe entire article including the very title explains that this is an improved version of Rainbow, of which they are very well aware and cite very clearly, and tweak for well explained reasons.
- JBorrow 7y agoSorry, my comment was unclear. They are comparing against jet, which is a colourmap that uses all the colours of the rainbow. They are not using the colourmap _called_ `rainbow`, to compare against.
- robotresearcher 7y agoYou are right and I was wrong. The ‘rainbow’ map at the matplotlib link happens to be plotted next to ‘jet’ and the lack of perceptual banding in comparison is clear. Looks like the Google author came up with a similar idea. Whoever gave the name ‘rainbow’ to their rainbow colormap?! It’s like naming a dog ‘dog’.
- JBorrow 7y agoYeah, it's not the best name. There is also the 'Spectral' colour map that is plotted in a different section, which imo is much better suited as being a diverging colour map as yellow looks more 'neutral' than bright green.
- whyever 7y agoThe article explicitly compares to the matplotlib colormaps and states the advantages of their contribution.
- JBorrow 7y agoIf you look at the post that I referenced in there (a matplotlib page detailing the colourmaps that are available in that library) there is one that is actually called `rainbow` that's very similar to the one proposed by the google team. They do compare against viridis and inferno, you're correct -- but comparing a high-contrast colour map directly to a perceptually uniform one is an unfair comparison. They should compare against, for instance, the rainbow one from there, cubehelix, or even the twilight ones that I suggested. Of course it's always good to have other colour maps to choose from, but the similarity between this proposed one and the ones that already exist makes it seem like they've only quickly glanced at other work in the field.
- antovsky 7y agoIndeed, we probably should have compared more directly to Rainbow, I got a bit of this flak on Twitter as well (with my rationale included): https://twitter.com/JamesABednar/status/1163978274361544704?s=20 https://twitter.com/JamesABednar/status/1163978274361544704?... The practical issue is that not many people really use Rainbow instead of Jet, for the reasons I mentioned in the article (it sacrifices too many of the 'good bits' of Jet). So instead I chose to compare to the more 'widely recommended' maps. But you're right, I should have thrown rainbow into the mix, even if I didn't have the space to write about it.
- JBorrow 7y agoAgree with you that the smoother shape leads to a more pleasing colour profile -- note that the `rainbow` cmap in matplotlib is different to the one you compared against, it's actually more similar to Turbo by looks. I would have also compared against other diverging colour maps, like Spectral and those available in `cmocean` (the latter are really beautiful). All of this said, Turbo is quite pleasing to the eye :).
- antovsky 7y agoThanks! Indeed there are a few 'rainbow' variants out there (in d3, matplotlib, matlab), and some of them are very pleasant (though I think lower contrast). I personally find it confusing to have 'pink' in a rainbow map. It's not in a real rainbow, and the way I recall the color order is by visualizing that so it trips me up :) I like Spectral a lot as well. I think if you're not after mega contrast it's probably the best bread-and-butter map out there for this kind of work.