summaryrefslogtreecommitdiff
path: root/graphics/pstricks/contrib/numericplots/doc/src/examples/basic_LineStyles.tex
blob: 0f0675b7983b765b0c605a3e315298d317986e55 (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
\begin{NumericDataPlot}
   {\textwidth}{6.5cm}

   \definecolor{MyColor}{cmyk}{0.6 0.21 1.0 0.2}
   \newpsstyle{MyLine}{linecolor=MyColor, linewidth=2pt, linestyle=dashed,
   dash=1pt 1pt 4pt 1pt 1pt 3pt, dotstyle=*, showpoints=true, dotsize=5pt}
   \newpsstyle{MyLineA}{linecolor=blue, linestyle=dotted,
   dotstyle=asterisk, showpoints=true}

	\setxAxis
	   {xMin=1, xMax=1.6, Dx=0.2}
	\setyAxis
	   {yMin=50, yMax=150, Dy=25}
	
	\plotxAxis[NoLabel]{}
	\plotyAxis[NoLabel]{}
	
	\listplot[style=MyLine]
	   {\IdentI}
	\listplot[style=MyLineA]
	   {\IdentII}
	
	\putSE{\LegendDefinition{
		\LegLine{style=MyLine} & IdentI\\
		\LegLine{style=MyLineA} & IdentII
	}}
\end{NumericDataPlot}