2021-06-25 17:45:33 +02:00
2021-06-25 15:56:25 +02:00
2021-06-25 17:45:33 +02:00

MPL-Colormaps-Mathematica

Mathematica port of matplotlib colormaps Magma, Inferno, Plasma, Viridis, and Cividis.

alt text

Usage

To import this package, either download MPLColorMap.m and import the file using

<< "path/to/MPLColorMap.m";

or import the file from this web server using

<< "https://git.mieling.net/Thomas/MPL-Colormaps-Mathematica/raw/branch/master/MPLColorMap.m";

The various color maps are then available as MPLColorMap["Viridis"] etc. For example:

DensityPlot[Sin[x] Sin[y], {x, 0, 2 \[Pi]}, {y, 0, 2 \[Pi]}, 
 ColorFunction -> MPLColorMap["Viridis"]]

produces the following image:

alt text

Description
Mathematica port of matplotlib colormaps Magma, Inferno, Plasma, Viridis, and Cividis
Readme 1.5 MiB
Languages
Mathematica 100%