Probe Software Users Forum

Software => Probe Image => Topic started by: Anette von der Handt on December 21, 2017, 03:29:09 PM

Title: No more rainbows!
Post by: Anette von der Handt on December 21, 2017, 03:29:09 PM
Hi,

I stumbled upon this passionate discussion of the misuse and use of the rainbow colormap that we (or at least I) love so dearly.

https://agilescientific.com/blog/2017/12/14/no-more-rainbows

A view that is shared by many others (apparently there are even anti-rainbow-colormap-activists) and led to a change in the default colormap for Matlab users for example (Parula, which is intellectual property, unfortunately) in 2014.

To sum up some of the critiques:

I really like the rainbow colors but the more I learn about data visualization the more I understand its disadvantages but in general. I think its advantage at this point is just our familiarity with this "standard" color transition and that we intuitively understand maps using it. But are we missing the train?

Ben Buse posted earlier in this forum a color pallet for surfer based on Viridis, a colormap that works well for color-blind people.
http://smf.probesoftware.com/index.php?topic=958.0

So, dear probers, should we adopt a new and better "standard" colormap for our element maps? To an extent we are in a good position to make a change happen as we generate the data for these element maps. Which one should it be?


More on the rainbow color map:

More on Parula and Viridis color maps
Title: Re: No more rainbows!
Post by: Probeman on December 21, 2017, 04:32:50 PM
I concur.

This is why I've always preferred the "thermal" color scale.  It's much more intuitive in that black is minimum and white is maximum with brown, red, orange, yellow in between.

In fact I tried hard with the rainbow color scale in PFE and CalcImage, so we don't have black at both sides of the rainbow color scale as seen here:

(https://smf.probesoftware.com/gallery/395_21_12_17_4_28_24.png)

This is a reasonable compromise I think, though I still prefer the thermal scale as seen here:

(https://smf.probesoftware.com/gallery/395_21_12_17_4_29_58.png)

Though some people are fans of this color scale used by JEOL:

(https://smf.probesoftware.com/gallery/395_21_12_17_4_31_13.png)
Title: Re: No more rainbows!
Post by: glennpoirier on December 21, 2017, 04:48:23 PM
As a token colorblind person I heartily concur with abandoning the rainbow colour map.  It's never made any sense to my eyes. I used to like a pure thermal colour map but honestly I prefer the default thermal map used in PFE, my eyes can pick up very small brightness differences with this LUT. The Viridis LUT is nicer than the rainbow but I'm not very green sensitive.
My two cents
Cheers
Glenn
Title: Re: No more rainbows!
Post by: Anette von der Handt on December 21, 2017, 05:00:37 PM
Interesting, the JEOL one is very similar to Viridis.

Viridis
(https://smf.probesoftware.com/gallery/17_21_12_17_4_54_58.png)

And here is Parula for comparison
Parula
(https://smf.probesoftware.com/gallery/17_21_12_17_4_52_50.png)

There are some more contenders:
Magma
(https://smf.probesoftware.com/gallery/17_21_12_17_4_56_00.png)

Inferno
(https://smf.probesoftware.com/gallery/17_21_12_17_4_57_09.png)

Plasma
(https://smf.probesoftware.com/gallery/17_21_12_17_4_58_04.png)


All found here:
http://medvis.org/2016/02/23/better-than-the-rainbow-the-matplotlib-alternative-colormaps/

Of course "Magma" would appeal to the geologists...
Title: Re: No more rainbows!
Post by: Karsten Goemann on December 21, 2017, 05:17:22 PM
My 2 cents regarding thermal would be that it is basically monochrome, so what's the benefit compared to just greyscale?

Title: Re: No more rainbows!
Post by: Anette von der Handt on December 21, 2017, 05:25:04 PM
Quote from: Karsten Goemann on December 21, 2017, 05:17:22 PM
My 2 cents regarding thermal would be that it is basically monochrome, so what's the benefit compared to just greyscale?



You make the poor, struggling publishers happy by having to pay their fee for having color figures in the paper ;)
Title: Re: No more rainbows!
Post by: Anette von der Handt on December 21, 2017, 05:33:33 PM
Here is a screenshot from a Youtube video that compares the different colormaps

(https://smf.probesoftware.com/gallery/17_21_12_17_5_32_18.png)
Left: Jet and Parula; Center: Magma and Inferno; Right: Plasma and Viridis.

Video:
https://www.youtube.com/watch?time_continue=9&v=u9a4NO3iGgA

Based on this, I like Inferno the best.
Title: Re: No more rainbows!
Post by: Probeman on December 21, 2017, 05:49:50 PM
Quote from: Karsten Goemann on December 21, 2017, 05:17:22 PM
My 2 cents regarding thermal would be that it is basically monochrome, so what's the benefit compared to just greyscale?

My understanding of the benefit of thermal compared to grayscale is that the human eye can only discern some 60 gray levels, while with the thermal scale the adding of red, orange and yellow (to black and white), greatly improves visual sensitivity (millions of colors).

Here is an interesting link discussing these issues.

https://betterfigures.org/2015/06/23/picking-a-colour-scale-for-scientific-graphics/

They make one claim that I find quite strange: "In general, people interpret darker colours as representing "more"."  That's certainly not the way I see it, but then I'm pretty strange...   more photons is lighter, right?   ;D
john
Title: Re: No more rainbows!
Post by: John Donovan on December 21, 2017, 05:55:04 PM
Most of the pixels of the strawberries in this image are gray:

(https://smf.probesoftware.com/gallery/1_21_12_17_5_53_15.jpeg)

https://www.digitalrev.com/article/your-brain-will-colour-correct-this-greyscale-image-of-strawberries

Your brain *wants* to see color!
Title: Re: No more rainbows!
Post by: Probeman on May 29, 2020, 08:25:24 AM
Interesting article from EOS:

https://eos.org/features/visualizing-science-how-color-determines-what-we-see

(https://smf.probesoftware.com/gallery/395_29_05_20_8_23_52.png)
Title: Re: No more rainbows!
Post by: SteveSeddio on June 25, 2020, 12:28:51 PM
This is slightly on the wrong board... but at customer request, we added (in Pathfinder x.x) an "incandescent" option to replace the rainbow scheme for COMPASS component maps.
It can be set in the NSSMachineSettings.ini file.
In the [Image] group.
Set UseIncandescent=1.


Title: Re: No more rainbows!
Post by: Probeman on June 25, 2020, 07:16:41 PM
Good to know.

Yeah, this fire color palette:

https://smf.probesoftware.com/index.php?topic=707.msg9302#msg9302

is essentially a thermal (incandescent) color palette with a little blue just before the black.
Title: Re: No more rainbows!
Post by: Probeman on November 14, 2021, 08:38:15 AM
(https://smf.probesoftware.com/gallery/395_14_11_21_8_36_52.png)

https://m.xkcd.com/2537/

Here's an interesting article on uses of color:

https://clauswilke.com/dataviz/color-pitfalls.html
Title: Re: No more rainbows!
Post by: John Donovan on November 14, 2022, 11:39:10 AM
(https://smf.probesoftware.com/gallery/1_14_11_22_11_34_53.jpeg)

That's the view from the offices of Probe Software, which I call a "fall" spectrum.

Now if we planted a blue spruce to the right of the Monterey Cypress, we'd have a "full" spectrum!     ;D
Title: Re: No more rainbows!
Post by: SteveSeddio on February 21, 2023, 01:54:40 PM
I happened to be perusing some Optometry journals (as one does), and the only color ramp that I saw was rainbow!
The irony!
Title: Re: No more rainbows!
Post by: Probeman on February 21, 2023, 02:17:11 PM
Quote from: SteveSeddio on February 21, 2023, 01:54:40 PM
I happened to be perusing some Optometry journals (as one does), and the only color ramp that I saw was rainbow!
The irony!

What about bee optometry journals?   They see in the ultraviolet!    :D
Title: Re: No more rainbows!
Post by: Probeman on February 24, 2023, 08:13:11 AM
What's worse than a rainbow palette?

This:

(https://smf.probesoftware.com/gallery/395_23_02_23_10_45_02.png)
Title: Re: No more rainbows!
Post by: anenburg on March 27, 2023, 05:32:02 PM
This is an excellent paper on the topic, for those who are interested.

https://doi.org/10.1038/s41467-020-19160-7
Title: Re: No more rainbows!
Post by: Anette von der Handt on March 30, 2023, 09:58:46 AM
That is a great paper! Thanks for sharing.
Title: Re: No more rainbows!
Post by: Anette von der Handt on May 04, 2023, 11:09:53 AM
Hi,

I created color scales (Viridis, Cividis, Magma and Plasma) for the JEOL N-Map viewer. See here for the files and instructions how to implement it: https://smf.probesoftware.com/index.php?topic=1529.0

(https://smf.probesoftware.com/gallery/17_04_05_23_11_00_34.jpeg)
Title: Re: No more rainbows!
Post by: JonF on April 25, 2024, 01:38:27 AM
Here's the link for the viridis, cividis, plasma and magma colour scales for use with CalcImage:

https://smf.probesoftware.com/index.php?topic=1615.msg12579#msg12579 (https://smf.probesoftware.com/index.php?topic=1615.msg12579#msg12579)
Title: Re: No more rainbows!
Post by: John Donovan on November 05, 2025, 03:03:16 PM
This fall has quite colorful, enough so that I can almost see a "full spectrum" from our house:

(https://smf.probesoftware.com/gallery/1_05_11_25_3_02_09.png)