Open Metric
Science, Fiction and Me

Today I Learned

Cubehelix, not Rainbow

Here in a series of posts by MYCARTA, the author Matteo analyzed the drawbacks of rainbow. Problems such as non-monotonic changing of brightness can cause serious problems for figures and plots.

Cubehelix comes to the rescue. Other alternatives can also be very helpful, such as viridis.


D3.js has a cubehelix plugin that contains the cubehelix color palette.


Many python modules has implemented cubehelix. Such as jradavenport/cubehelix.


Here is the cubehelix code from [email protected]. He also made it avaible online through <<"";

Download the Mathematica notebook here.

A Random #TIL# for You

Most technical TILs will be updated at

By OctoMiao

Last updated