Update readme with figures
This commit is contained in:
25
README.md
25
README.md
@@ -1,3 +1,26 @@
|
||||
# MPL-Colormaps-Mathematica
|
||||
|
||||
Mathematica port of matplotlib colormaps Magma, Inferno, Plasma, Viridis, and Cividis
|
||||
Mathematica port of matplotlib colormaps Magma, Inferno, Plasma, Viridis, and Cividis.
|
||||
|
||||

|
||||
|
||||
## 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:
|
||||
 sin(y) using the 'Viridis' color map")
|
||||
|
||||
BIN
examples/densityplot.png
Normal file
BIN
examples/densityplot.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 162 KiB |
BIN
examples/gallery.png
Normal file
BIN
examples/gallery.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 454 KiB |
Reference in New Issue
Block a user