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.tex23
1 files changed, 19 insertions, 4 deletions
diff --git a/Master/texmf-dist/doc/latex/pgfplots/pgfplots-macros.tex b/Master/texmf-dist/doc/latex/pgfplots/pgfplots-macros.tex
index fbb96fa537d..f60170652e1 100644
--- a/Master/texmf-dist/doc/latex/pgfplots/pgfplots-macros.tex
+++ b/Master/texmf-dist/doc/latex/pgfplots/pgfplots-macros.tex
@@ -352,21 +352,21 @@
}}%
}%
-\def\pgfplotsshortstylekey #1=#2;{%
+\def\pgfplotsshortstylekey #1=#2\pgfeov{%
\pgfplotsassertcmdkeyexists{#1}%
\pgfplotsassertcmdkeyexists{#2}%
\begin{pgfplotskey}{#1=\marg{key-value-list}}
An abbreviation for \texttt{#2/.append style=}\marg{key-value-list}.
\end{pgfplotskey}
}
-\def\pgfplotsshortxystylekey #1=#2;{%
+\def\pgfplotsshortxystylekey #1=#2\pgfeov{%
\pgfplotsassertXYcmdkeyexists{#1}%
\pgfplotsassertXYcmdkeyexists{#2}%
\begin{pgfplotsxykey}{#1=\marg{key-value-list}}
An abbreviation for {\def\x{x}\texttt{#2/.append style=}}\marg{key-value-list} (or the respective style for $y$, {\def\x{y}\texttt{#2}}).
\end{pgfplotsxykey}
}
-\def\pgfplotsshortstylekeys #1,#2=#3;{%
+\def\pgfplotsshortstylekeys #1,#2=#3\pgfeov{%
\pgfplotsassertcmdkeyexists{#1}%
\pgfplotsassertcmdkeyexists{#2}%
\pgfplotsassertcmdkeyexists{#3}%
@@ -376,7 +376,7 @@
Different abbreviations for \texttt{#3/.append style=}\marg{key-value-list}.
\end{pgfplotskeylist}
}
-\def\pgfplotsshortxystylekeys #1,#2=#3;{%
+\def\pgfplotsshortxystylekeys #1,#2=#3\pgfeov{%
\pgfplotsassertXYcmdkeyexists{#1}%
\pgfplotsassertXYcmdkeyexists{#2}%
\pgfplotsassertXYcmdkeyexists{#3}%
@@ -387,4 +387,19 @@
\end{pgfplotsxykeylist}
}
+%
+% Creates and shows a colormap with specification '#1'.
+\def\pgfplotsshowcolormapexample#1{%
+ \pgfplotscreatecolormap{tempcolormap}{#1}%
+ \pgfplotsshowcolormap{tempcolormap}%
+}
+
+% Shows the colormap named '#1'.
+\def\pgfplotsshowcolormap#1{%
+ \pgfplotscolormaptoshadingspec{#1}{8cm}\result
+ \def\tempb{\pgfdeclarehorizontalshading{tempshading}{1cm}}%
+ \expandafter\tempb\expandafter{\result}%
+ \pgfuseshading{tempshading}%
+}
+
\makeatother