There are already good approaches for "better than standard" colormaps in MMAMathematica, which are optimized for a more linear perception between the visible colors and their underlying values, here in StackExchange: Is there an easy way to use Matteo Niccoli'sNiccoli's perceptual color maps for 2D plots in Mathematica?
Nevertheless, those considerations can go even further into thinking of Colormapscolormaps that also include linear perception for persons impaired by deuteranopia or protanopia. Also the grayscale-printing can be optimized.
Have a look at: https://bids.github.io/colormap/this page.
Example: (source: https://bids.github.io/colormap/)
Question:
Far down in the article, there are some hints to generate those maps using Python. How can those maps be generated and used in MMAMathematica? I am particularly interested in "Option D (Viridis)".
What I have tried/found out so far:
On the article's website, I found a pythonPython script including a variable cm_data
, which contains apparently RGB-Values values (scaled from 0.0 to 1.0) in a structure like: [[R1,G1,B1],...,[Rn,Bn,Gn]]
. I'm not familiar with parsing such a string into a useful List
in MMAMathematica.