summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/numericplots/src/examples/basic_PlaceObjects.tex
blob: ddacb061a1eb341f79412ee0162a4fccf1a98f51 (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
\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}
	% .. with text
	\naput{$e^2$}
	
	% or put the legend at a specific position
	\NDPput[x=1.8, y=75]{\LegendDefinition{
		\LegLine{style=StdLineStyA} & IdentI
	}}
\end{NumericDataPlot}