From 6bc1f5497cfb2f56d65c80a4c36ea3bad6dc046c Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Fri, 29 Oct 2010 00:31:31 +0000
Subject: pgf 2.10 (28oct10)

git-svn-id: svn://tug.org/texlive/trunk@20236 c570f23f-e606-0410-a88d-b1316a301751
---
 .../pgf/libraries/pgflibraryplotmarks.code.tex     | 243 ++++++++++++++++++++-
 1 file changed, 242 insertions(+), 1 deletion(-)

(limited to 'Master/texmf-dist/tex/generic/pgf/libraries/pgflibraryplotmarks.code.tex')

diff --git a/Master/texmf-dist/tex/generic/pgf/libraries/pgflibraryplotmarks.code.tex b/Master/texmf-dist/tex/generic/pgf/libraries/pgflibraryplotmarks.code.tex
index e20805d50a1..57df579e3f3 100644
--- a/Master/texmf-dist/tex/generic/pgf/libraries/pgflibraryplotmarks.code.tex
+++ b/Master/texmf-dist/tex/generic/pgf/libraries/pgflibraryplotmarks.code.tex
@@ -7,7 +7,7 @@
 %
 % See the file doc/generic/pgf/licenses/LICENSE for more details.
 
-\ProvidesFileRCS[v\pgfversion] $Header: /cvsroot/pgf/pgf/generic/pgf/libraries/pgflibraryplotmarks.code.tex,v 1.5 2007/03/09 17:49:32 tantau Exp $
+\ProvidesFileRCS[v\pgfversion] $Header: /cvsroot/pgf/pgf/generic/pgf/libraries/pgflibraryplotmarks.code.tex,v 1.12 2010/10/15 07:34:06 ludewich Exp $
 
 
 % A stroked circle mark
@@ -19,6 +19,32 @@
 }
 
 
+% A Mercedes-line star
+
+\pgfdeclareplotmark{Mercedes star}
+{%
+  \pgfpathmoveto{\pgfqpointpolar{90}{\pgfplotmarksize}}
+  \pgfpathlineto{\pgfpointorigin}
+  \pgfpathmoveto{\pgfqpointpolar{-30}{\pgfplotmarksize}}
+  \pgfpathlineto{\pgfpointorigin}
+  \pgfpathmoveto{\pgfqpointpolar{-150}{\pgfplotmarksize}}
+  \pgfpathlineto{\pgfpointorigin}
+  \pgfusepathqstroke
+}
+
+\pgfdeclareplotmark{Mercedes star flipped}
+{%
+  \pgfpathmoveto{\pgfqpointpolar{-90}{\pgfplotmarksize}}
+  \pgfpathlineto{\pgfpointorigin}
+  \pgfpathmoveto{\pgfqpointpolar{30}{\pgfplotmarksize}}
+  \pgfpathlineto{\pgfpointorigin}
+  \pgfpathmoveto{\pgfqpointpolar{150}{\pgfplotmarksize}}
+  \pgfpathlineto{\pgfpointorigin}
+  \pgfusepathqstroke
+}
+
+
+
 
 % A six-pointed star mark
 
@@ -47,6 +73,19 @@
 }
 
 
+% An 10-pointed star mark
+
+\pgfdeclareplotmark{10-pointed star}
+{%
+  \pgfpathmoveto{\pgfqpoint{0pt}{-\pgfplotmarksize}}\pgfpathlineto{\pgfqpoint{0pt}{\pgfplotmarksize}}
+  \pgfpathmoveto{\pgfqpointpolar{18}{-\pgfplotmarksize}}\pgfpathlineto{\pgfqpointpolar{18}{\pgfplotmarksize}}
+  \pgfpathmoveto{\pgfqpointpolar{-54}{-\pgfplotmarksize}}\pgfpathlineto{\pgfqpointpolar{-54}{\pgfplotmarksize}}
+  \pgfpathmoveto{\pgfqpointpolar{234}{-\pgfplotmarksize}}\pgfpathlineto{\pgfqpointpolar{234}{\pgfplotmarksize}}
+  \pgfpathmoveto{\pgfqpointpolar{162}{-\pgfplotmarksize}}\pgfpathlineto{\pgfqpointpolar{162}{\pgfplotmarksize}}
+  \pgfusepathqstroke
+}
+
+
 % An \oplus mark
 
 \pgfdeclareplotmark{oplus}
@@ -209,4 +248,206 @@
   \pgfusepathqfillstroke
 }
 
+\newif\ifpgfmarktext@usetikznode
+\pgfkeys{
+  /pgf/text mark/.initial=p,
+  /pgf/text mark style/.initial=,
+  /pgf/text mark as node/.is if=pgfmarktext@usetikznode,
+  /pgf/text mark as node/.default=true,
+  % 
+  % backw. compat: the extra search path confuses the '.unknown'
+  % handlers, so this here is deprecated:
+  /pgf/text mark/style/.style={/pgf/text mark style={#1}},%
+  /pgf/text mark/as node/.style={/pgf/text mark as node=#1},%
+}%
+
+\pgfdeclareplotmark{text}
+{
+  \pgfkeysgetvalue{/pgf/text mark style}\pgfmarktext@style
+  \pgfkeysgetvalue{/pgf/text mark}\pgfmarktext@
+  \ifpgfmarktext@usetikznode
+    \expandafter\node\expandafter[\pgfmarktext@style]{\pgfmarktext@};
+  \else
+    \expandafter\pgftext\expandafter[\pgfmarktext@style]{\pgfmarktext@}%
+  \fi
+}
+
+\pgfkeysdef{/pgf/mark color}{\def\pgf@mark@color{#1}}
+\let\pgf@mark@color\pgfutil@empty
+
+\def\pgf@set@mark@color{%
+	\ifx\pgf@mark@color\pgfutil@empty
+		\pgfsys@color@rgb@fill{1}{1}{1}%
+	\else
+		\pgfsetfillcolor{\pgf@mark@color}%
+	\fi
+}%
+\def\pgf@mark@color@none{none}%
+
+% A half-down-filled and half-up-filled-white diamond-shaped mark
+% (the shape can be rotated by "mark options = {rotate = 90}")
+% created by Tomek
+
+\pgfdeclareplotmark{halfcircle}{%
+	\ifx\pgf@mark@color@none\pgf@mark@color
+	\else
+		\pgfscope
+		\pgf@set@mark@color
+		\pgfpathmoveto
+			{\pgfqpoint{-\pgfplotmarksize}{0pt}}%
+		\pgfpatharc{180}{360}{\pgfplotmarksize}%
+		\pgfusepathqfill
+		\endpgfscope%
+	\fi
+	\pgfpathmoveto
+		{\pgfqpoint{-\pgfplotmarksize}{0pt}}%
+	\pgfpathlineto
+		{\pgfqpoint{\pgfplotmarksize}{0pt}}%
+	\pgfpathcircle{\pgfpointorigin}%
+		{\pgfplotmarksize}%
+	\pgfusepathqstroke
+}
+\pgfdeclareplotmark{halfcircle*}{%
+    \pgfpathmoveto
+        {\pgfqpoint{\pgfplotmarksize}{0pt}}%
+    \pgfpatharc{0}{180}{\pgfplotmarksize}%
+    \pgfpathclose
+    \pgfusepathqfill
+	\ifx\pgf@mark@color@none\pgf@mark@color
+	\else
+		\pgfscope
+			\pgf@set@mark@color
+			\pgfpathmoveto
+				{\pgfqpoint{-\pgfplotmarksize}{0pt}}%
+			\pgfpatharc{180}{360}{\pgfplotmarksize}%
+			\pgfusepathqfill
+		\endpgfscope%
+	\fi
+	\pgfpathcircle{\pgfpointorigin}%
+		{\pgfplotmarksize}%
+	\pgfusepathqstroke
+}
+
+% A half-down-filled and half-up-filled-white diamond-shaped mark
+% created by Magnus Tewes
+
+\pgfdeclareplotmark{halfdiamond*}{%
+  \pgfpathmoveto{\pgfqpoint{-.75\pgfplotmarksize}{0pt}}%
+  \pgfpathlineto{\pgfqpoint{0pt}{-\pgfplotmarksize}}%
+  \pgfpathlineto{\pgfqpoint{.75\pgfplotmarksize}{0pt}}%
+  \pgfusepathqfill
+  \ifx\pgf@mark@color@none\pgf@mark@color
+  \else
+	  \pgfscope
+	  \pgf@set@mark@color
+	  \pgfpathmoveto{\pgfqpoint{.75\pgfplotmarksize}{0pt}}%
+	  \pgfpathlineto{\pgfqpoint{0pt}{\pgfplotmarksize}}%
+	  \pgfpathlineto{\pgfqpoint{-.75\pgfplotmarksize}{0pt}}%
+	  \pgfusepathqfill
+	  \endpgfscope
+  \fi
+  \pgfpathmoveto{\pgfqpoint{.75\pgfplotmarksize}{0pt}}%
+  \pgfpathlineto{\pgfqpoint{0pt}{\pgfplotmarksize}}%
+  \pgfpathlineto{\pgfqpoint{-.75\pgfplotmarksize}{0pt}}%
+  \pgfpathlineto{\pgfqpoint{0pt}{-\pgfplotmarksize}}%
+  \pgfpathclose
+  \pgfusepathqstroke
+}
+
+% A half-down-filled and half-up-filled-white tilted-squared-shaped mark
+% created by Magnus Tewes
+
+\pgfdeclareplotmark{halfsquare*}{%
+  \pgfpathmoveto{\pgfqpoint{-\pgfplotmarksize}{0pt}}%
+  \pgfpathlineto{\pgfqpoint{0pt}{-\pgfplotmarksize}}%
+  \pgfpathlineto{\pgfqpoint{\pgfplotmarksize}{0pt}}%
+  \pgfusepathqfill
+  \ifx\pgf@mark@color@none\pgf@mark@color
+  \else
+	  \pgfscope
+		  \pgf@set@mark@color
+		  \pgfpathmoveto{\pgfqpoint{\pgfplotmarksize}{0pt}}%
+		  \pgfpathlineto{\pgfqpoint{0pt}{\pgfplotmarksize}}%
+		  \pgfpathlineto{\pgfqpoint{-\pgfplotmarksize}{0pt}}%
+		  \pgfusepathqfill
+	  \endpgfscope
+  \fi
+  \pgfpathmoveto{\pgfqpoint{\pgfplotmarksize}{0pt}}%
+  \pgfpathlineto{\pgfqpoint{0pt}{\pgfplotmarksize}}%
+  \pgfpathlineto{\pgfqpoint{-\pgfplotmarksize}{0pt}}%
+  \pgfpathlineto{\pgfqpoint{0pt}{-\pgfplotmarksize}}%
+  \pgfpathclose
+  \pgfusepathqstroke
+}
+
+% A half-right-filled and half-up-filled-white tilted-squared-shaped mark
+% created by Magnus Tewes
+
+\pgfdeclareplotmark{halfsquare right*}{%
+  \pgfpathmoveto{\pgfqpoint{0pt}{-\pgfplotmarksize}}%
+  \pgfpathlineto{\pgfqpoint{\pgfplotmarksize}{0pt}}%
+  \pgfpathlineto{\pgfqpoint{0pt}{\pgfplotmarksize}}%
+  \pgfusepathqfill
+  \ifx\pgf@mark@color@none\pgf@mark@color
+  \else
+	  \pgfscope
+		  \pgf@set@mark@color
+		  \pgfpathmoveto{\pgfqpoint{0pt}{-\pgfplotmarksize}}%
+		  \pgfpathlineto{\pgfqpoint{-\pgfplotmarksize}{0pt}}%
+		  \pgfpathlineto{\pgfqpoint{0pt}{\pgfplotmarksize}}%
+		  \pgfusepathqfill
+	  \endpgfscope
+  \fi
+  \pgfpathmoveto{\pgfqpoint{\pgfplotmarksize}{0pt}}%
+  \pgfpathlineto{\pgfqpoint{0pt}{\pgfplotmarksize}}%
+  \pgfpathlineto{\pgfqpoint{-\pgfplotmarksize}{0pt}}%
+  \pgfpathlineto{\pgfqpoint{0pt}{-\pgfplotmarksize}}%
+  \pgfpathclose
+  \pgfusepathqstroke
+}
+
+% A half-left-filled and half-up-filled-white tilted-squared-shaped mark
+% created by Magnus Tewes
+
+\pgfdeclareplotmark{halfsquare left*}{%
+  \pgfpathmoveto{\pgfqpoint{0pt}{-\pgfplotmarksize}}%
+  \pgfpathlineto{\pgfqpoint{-\pgfplotmarksize}{0pt}}%
+  \pgfpathlineto{\pgfqpoint{0pt}{\pgfplotmarksize}}%
+  \pgfusepathqfill
+  \ifx\pgf@mark@color@none\pgf@mark@color
+  \else
+	  \pgfscope
+		  \pgf@set@mark@color
+		  \pgfpathmoveto{\pgfqpoint{0pt}{-\pgfplotmarksize}}%
+		  \pgfpathlineto{\pgfqpoint{\pgfplotmarksize}{0pt}}%
+		  \pgfpathlineto{\pgfqpoint{0pt}{\pgfplotmarksize}}%
+		  \pgfusepathqfill
+	  \endpgfscope
+  \fi
+  \pgfpathmoveto{\pgfqpoint{\pgfplotmarksize}{0pt}}%
+  \pgfpathlineto{\pgfqpoint{0pt}{\pgfplotmarksize}}%
+  \pgfpathlineto{\pgfqpoint{-\pgfplotmarksize}{0pt}}%
+  \pgfpathlineto{\pgfqpoint{0pt}{-\pgfplotmarksize}}%
+  \pgfpathclose
+  \pgfusepathqstroke
+}
+
+
+% A stroke-filled heart-shaped mark
+% created by Magnus Tewes
+\pgfdeclareplotmark{heart}{%
+  \pgfpathmoveto{\pgfqpoint{0pt}{-1.75\pgfplotmarksize}}
+  \pgfpathcurveto{\pgfqpoint{0pt}{-1.75\pgfplotmarksize}}{\pgfqpoint{0pt}{-1.66\pgfplotmarksize}}{\pgfqpoint{-.5\pgfplotmarksize}{-1.165\pgfplotmarksize}}
+  \pgfpathcurveto{\pgfqpoint{-.5\pgfplotmarksize}{-1.165\pgfplotmarksize}}{\pgfqpoint{-\pgfplotmarksize}{-.75\pgfplotmarksize}}{\pgfqpoint{-\pgfplotmarksize}{0pt}}
+  \pgfpathcurveto{\pgfqpoint{-\pgfplotmarksize}{0pt}}{\pgfqpoint{-\pgfplotmarksize}{.5825\pgfplotmarksize}}{\pgfqpoint{-.5825\pgfplotmarksize}{.5825\pgfplotmarksize}}
+  \pgfpathcurveto{\pgfqpoint{-.5825\pgfplotmarksize}{.5825\pgfplotmarksize}}{\pgfqpoint{0pt}{.5825\pgfplotmarksize}}{\pgfqpoint{0pt}{0pt}}
+  \pgfpathcurveto{\pgfqpoint{0pt}{0pt}}{\pgfqpoint{0pt}{.5825\pgfplotmarksize}}{\pgfqpoint{.5825\pgfplotmarksize}{.5825\pgfplotmarksize}}
+  \pgfpathcurveto{\pgfqpoint{.5825\pgfplotmarksize}{.5825\pgfplotmarksize}}{\pgfqpoint{\pgfplotmarksize}{.5825\pgfplotmarksize}}{\pgfqpoint{\pgfplotmarksize}{0pt}}
+  \pgfpathcurveto{\pgfqpoint{\pgfplotmarksize}{0pt}}{\pgfqpoint{\pgfplotmarksize}{-.75\pgfplotmarksize}}{\pgfqpoint{.5\pgfplotmarksize}{-1.165\pgfplotmarksize}}
+  \pgfpathcurveto{\pgfqpoint{.5\pgfplotmarksize}{-1.165\pgfplotmarksize}}{\pgfqpoint{0pt}{-1.66\pgfplotmarksize}}{\pgfqpoint{0pt}{-1.75\pgfplotmarksize}}
+  \pgfpathclose
+  \pgfusepathqfillstroke
+}
+
+
 \endinput
-- 
cgit v1.2.3

