summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/pgfplots/pgfplots-macros.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/pgfplots/pgfplots-macros.tex')
-rw-r--r--Master/texmf-dist/doc/latex/pgfplots/pgfplots-macros.tex3
1 files changed, 3 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/pgfplots/pgfplots-macros.tex b/Master/texmf-dist/doc/latex/pgfplots/pgfplots-macros.tex
index f60170652e1..ce1d14208bc 100644
--- a/Master/texmf-dist/doc/latex/pgfplots/pgfplots-macros.tex
+++ b/Master/texmf-dist/doc/latex/pgfplots/pgfplots-macros.tex
@@ -396,6 +396,9 @@
% Shows the colormap named '#1'.
\def\pgfplotsshowcolormap#1{%
+ \pgfplotscolormapifdefined{#1}{\relax}{%
+ \pgfplotsset{colormap/#1}%
+ }%
\pgfplotscolormaptoshadingspec{#1}{8cm}\result
\def\tempb{\pgfdeclarehorizontalshading{tempshading}{1cm}}%
\expandafter\tempb\expandafter{\result}%