From 1237e0cb8c5e98a279e69b2f203660a0d2d76637 Mon Sep 17 00:00:00 2001 From: Thomas Mieling Date: Fri, 25 Jun 2021 17:48:37 +0200 Subject: [PATCH] Add syntax highlighting in readme --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 34366a4..03b3326 100644 --- a/README.md +++ b/README.md @@ -7,19 +7,19 @@ Mathematica port of matplotlib colormaps Magma, Inferno, Plasma, Viridis, and Ci ## Usage To import this package, either download `MPLColorMap.m` and import the file using -``` +```Mathematica << "path/to/MPLColorMap.m"; ``` or import the file from this web server using -``` +```Mathematica << "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: -``` +```Mathematica DensityPlot[Sin[x] Sin[y], {x, 0, 2 \[Pi]}, {y, 0, 2 \[Pi]}, - ColorFunction -> MPLColorMap["Viridis"]] + ColorFunction -> MPLColorMap["Viridis"]] ``` produces the following image: