From ad23c1c436c3e031cc4b81849d0fa2b892851467 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Thu, 5 Feb 2009 01:04:42 +0000
Subject: pgfplots update (4feb09)

git-svn-id: svn://tug.org/texlive/trunk@12087 c570f23f-e606-0410-a88d-b1316a301751
---
 .../doc/latex/pgfplots/pgfplots-macros.tex         | 23 ++++++++++++++++++----
 1 file changed, 19 insertions(+), 4 deletions(-)

(limited to 'Master/texmf-dist/doc/latex/pgfplots/pgfplots-macros.tex')

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
-- 
cgit v1.2.3

