summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-library-plot-marks.tex
blob: b953be6a25e33244b526aac7111dad86ee59f338 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
% Copyright 2006 by Till Tantau
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Free Documentation License.
%
% See the file doc/generic/pgf/licenses/LICENSE for more details.


\section{Plot Mark Library}

\begin{pgflibrary}{plotmarks}
  This library defines a number of plot marks.
\end{pgflibrary}

This library defines the following plot marks in
addition to |*|, |x|, and |+| (the filling color has been set to a
dark yellow):

{
\catcode`\|=12
\medskip
\begin{tabular}{lc}
  \plotmarkentry{-}
  \index{*vbar@\protect\texttt{\protect\myvbar} plot mark}%
  \index{Plot marks!*vbar@\protect\texttt{\protect\myvbar}}
  \texttt{\char`\\pgfuseplotmark\char`\{\declare{|}\char`\}} &
  \tikz\draw[color=black!25] plot[mark=|,mark options={fill=yellow,draw=black}]
  coordinates {(0,0) (.5,0.2) (1,0) (1.5,0.2)};\\
  \plotmarkentry{o}
  \plotmarkentry{asterisk}
  \plotmarkentry{star}
  \plotmarkentry{10-pointed star}
  \plotmarkentry{oplus}
  \plotmarkentry{oplus*}
  \plotmarkentry{otimes}
  \plotmarkentry{otimes*}
  \plotmarkentry{square}
  \plotmarkentry{square*}
  \plotmarkentry{triangle}
  \plotmarkentry{triangle*}
  \plotmarkentry{diamond}
  \plotmarkentry{diamond*}
  \plotmarkentry{halfdiamond*}
  \plotmarkentry{halfsquare*}
  \plotmarkentry{halfsquare right*}
  \plotmarkentry{halfsquare left*}
  \plotmarkentry{pentagon}
  \plotmarkentry{pentagon*}
  \plotmarkentry{Mercedes star}
  \plotmarkentry{Mercedes star flipped}
  \plotmarkentry{halfcircle}
  \plotmarkentry{halfcircle*}
  \plotmarkentry{heart}
  \plotmarkentry{text}
\end{tabular}
}

Note that each of the provided marks can be rotated freely by means of |mark options={rotate=90}| or |every mark/.append style={rotate=90}|.

\begin{key}{/pgf/mark color=\marg{color} (initially empty)}
	Defines the additional fill color for the |halfcircle|, |halfcircle*|, |halfdiamond*| and |halfsquare*| markers. An empty value uses |white| (which is the initial configuration). The special value |none| disables filling of the respective parts.

	Note that |halfsquare| will be filled with |mark color|, and the starred variant |halfsquare*| will be filled half with |mark color| and half with the actual |fill| color.
\end{key}



{
\def\showit#1{%
  \tikz\draw[color=black!25] plot[#1,mark options={fill=examplefill,draw=black}] coordinates{(0,0) (.5,0.2) (1,0) (1.5,0.2)};}%

\begin{key}{/pgf/text mark=\marg{text} (initially p)}
	Changes the text shown by |mark=text|.

	With |/pgf/text mark=m|: \pgfkeys{/pgf/text mark=m}\showit{mark=text}

	With |/pgf/text mark=A|: \pgfkeys{/pgf/text mark=A}\showit{mark=text}

	There is no limitation about the number of characters or whatever. In fact, any \TeX\ material can be inserted as \marg{text}, including images.
\end{key}
\begin{key}{/pgf/text mark style=\marg{options for \texttt{mark=text}}}
	Defines a set of options which control the appearance of |mark=text|.

	If |/pgf/text mark as node=false| (the default), \marg{options} is provided as argument to |\pgftext| -- which provides only some basic keys like |left|, |right|, |top|, |bottom|, |base| and |rotate|.

	If |/pgf/text mark as node=true|, \marg{options} is provided as argument to |\node|. This means you can provide a very powerful set of options including |anchor|, |scale|, |fill|, |draw|, |rounded corners| etc.
\end{key}
\begin{key}{/pgf/text mark as node=\mchoice{true,false} (initially false)}
	Configures how |mark=text| will be drawn: either as |\node| or as |\pgftext|.

	The first choice is highly flexible and possibly slow, the second is very fast and usually enough.
\end{key}

}


%%% Local Variables:
%%% mode: latex
%%% TeX-master: "pgfmanual-pdftex-version"
%%% End: