summaryrefslogtreecommitdiff
path: root/graphics/pstricks/contrib/numericplots/doc/src/examples/basic_Objects.tex
blob: f02df7e84165cd3a827df29e55e9a893da907cd4 (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
\begin{NumericDataPlot}
   {\textwidth}{6.5cm}
	\setxAxis
	   {xMin=1, xMax=2, Dx=0.2}
	\setyAxis
	   {yMin=50, yMax=150, Dy=25}
	
	\plotxAxis[LabelPos=1, LabelRefPt=tr]%
		{x-axis label}
	\plotyAxis[NoLabel]{}
	
	\listplot[style=StdLineStyA]
	   {\IdentI}
	
	% put some stuff somewhere
	\NDPput[x=1.2, y=75, RefPoint=br]{text}
	\NDPput[x=1.2, y=100, Rot=45]{$a^2+b^2$}
	
	% or put nodes...
	\NDPput[x=1.6, y=100]{\pnode{A}}
	\NDPput[x=1.8, y=150]{\pnode{B}}
	% ...and draw a line between them
	\ncline{A}{B}
	
	% or put the legend at a specific position
	\NDPput[x=1.8, y=75]{\LegendDefinition{
		\LegLine{style=StdLineStyA} & IdentI
	}}
\end{NumericDataPlot}