![](/profiles/wavemetrics/themes/wavemetrics/logo.png)
Viridis in Igor (and other custom color maps)
![](/sites/default/files/styles/thumbnail/public/default_images/Artboard%201_1.png?itok=jeHOCIXy)
jcor
Hi,
I just read about Viridis, a color-blind and greyscale-printing friendly colour palette, and want to program it into Igor.
I don't really know where to start, and would also like to spare myself the effort, so I wonder if anyone has already done it or something similar?
This website provides a quick summary of why Viridis should be used.
j
Sounds like a worthwhile endeavour.
The built-in GreenMagenta16, EOSOrangeBlue11, and EOSSpectral11 color tables are also designed to be red-green colorblind-friendly:
October 31, 2018 at 08:58 am - Permalink
You can define your own color tables via multi-column waves: DisplayHelpTopic "Color Table Waves".
October 31, 2018 at 09:18 am - Permalink
There is a very helpful posting from Wavemetrics that describes the steps to create a color table from a screen capture about a third of the way down this page:
https://www.wavemetrics.com/news/get-know-feature-color-table-wave-crea…
October 31, 2018 at 09:36 am - Permalink
In reply to There is a very helpful… by kaikin
The viridis color table is available for python here.
Copy/paste the color table data into a text editor, find & replace the brackets, save and load into igor as delimited text to produce three waves. Then execute:
viridis[][0]=wave0[p]*65535
viridis[][1]=wave1[p]*65535
viridis[][2]=wave2[p]*65535
make foo=x
display foo
ModifyGraph lsize=5, zColor(foo)={foo,*,*,ctableRGB,0, viridis}
October 31, 2018 at 02:09 pm - Permalink
I posted this snippet last year which might be useful
https://www.wavemetrics.com/code-snippet/cet-perceptually-uniform-color-maps
November 1, 2018 at 07:00 am - Permalink
Viridis is installed with Igor 8.02 in the "C:\Program Files\WaveMetrics\Igor Pro 8 Folder\Color Tables\" folder.
Open the ColorTableWavesHelp.ihf file to get one-click access to a wide variety of pre-built color table waves. See the attached photo.
November 1, 2018 at 06:02 pm - Permalink
In reply to I posted this snippet last… by sjr51
So many useful comments! Great that Viridis is in Igor 8, but I am using Igor 7 for now.
This is an amazing piece of work by Peter Kovesi, very understated by sjr51. Thank you for programming it in Igor. It would be nice to see these in the Igor Color Tables folder too!
November 2, 2018 at 10:01 am - Permalink
Some new scientific color maps were released by Fabio Crameri. I have converted them into IBWs that you can use with the "Color as f(z)" technique as described with
Here are the different maps:
November 15, 2020 at 10:12 am - Permalink
I rescaled these to Igor's weird 0-65535 range.
They'll ship with Igor 9 in the Igor Pro Folder's Color Tables:SciColMaps subfolder.
November 16, 2020 at 09:48 pm - Permalink
In reply to I rescaled these to Igor's… by JimProuty
I had actually edited my post and fixed the files to the correct range once I realized they weren't working!
I let the author of the scientific colormaps know that you will be including them in the next version.
November 17, 2020 at 12:09 am - Permalink