Debian Codegraph @

texmf-dist/doc/latex/numericplots/src/examples/multiplots_exampleI.tex

raw
1 % define linestyles
2 \newpsstyle{Database}{linecolor=LineColorA, linestyle=none, dotstyle=*,
3 showpoints=true, dotsize=5pt}
4 \newpsstyle{Result}{linecolor=LineColorB, linestyle=none, dotstyle=+,
5 showpoints=true, dotsize=10pt}
6
7 \begin{center}
8 \begin{NumericDataPlot}[xPicMin=0, xPicMax=1050,
9 yPicMin=0, yPicMax=1450]{\textwidth}{0.85\textheight}
10
11 % --- definition of the axis and the grid ---
12 % set the axis of the lower left corner
13 \setxAxis{xMin=2, xMax=17, Dx=4, xCoordMin=0, xCoordMax=500}
14 \setyAxis{yMin=20, yMax=70, Dy=20, yCoordMin=0, yCoordMax=500}
15
16 % plot the axis of the lower left corner
17 \plotxAxis{Stichnummer}
18 \plotyAxis{$F_{roll}$ in $\si{\mega\newton}$}
19
20
21
22
23
24 \listplot[style=Database]{\DataA}
25 \listplot[style=Result]{\DataB}
26 \listplot[style=StdLineStyC]{\DataC}
27 \listplot[style=StdLineStyD]{\DataD}
28 \listplot[style=StdLineStyE]{\DataE}
29 \listplot[style=StdLineStyF]{\DataF}
30 \listplot[style=StdLineStyG]{\DataG}
31
32 % set the y-axis for the plot in the middle of the left side
33 % x-axis remains the same
34 \setyAxis{yMin=20, yMax=70, Dy=20, yCoordMin=550, yCoordMax=1050}
35 % plot the axis (x-axis without ticklabels)
36 \plotxAxis[NoTickLabel,LabelSep=1ex]{a) Ein plot}
37 \plotyAxis{$F_{roll}$ in $\si{\mega\newton}$}
38
39 \listplot[style=Database]{\DataA}
40 \listplot[style=Result]{\DataB}
41
42 % set axis for the plot at the right side
43 \setxAxis{xMin=2, xMax=17, Dx=4, xCoordMin=600, xCoordMax=1050}
44 \setyAxis{yMin=20, yMax=70, Dy=10, yCoordMin=0, yCoordMax=1050}
45
46 % plot the axis at the right side (y-axis without label)
47 \plotxAxis{Stichnummer}
48 \plotyAxis[NoLabel]{$F_{roll}$ in $\mega\newton$}
49
50 \listplot[style=Database]{\DataA}
51 \listplot[style=Result]{\DataB}
52 \listplot[style=StdLineStyC]{\DataC}
53 \listplot[style=StdLineStyD]{\DataD}
54 \listplot[style=StdLineStyE]{\DataE}
55 \listplot[style=StdLineStyF]{\DataF}
56 \listplot[style=StdLineStyG]{\DataG}
57
58 % set the axis for the plot at the top
59 \setxAxis{xMin=8, xMax=17, Dx=1, xCoordMin=0, xCoordMax=1050}
60 \setyAxis{yMin=35, yMax=65, Dy=10, yO=40, yCoordMin=1150, yCoordMax=1450}
61
62 % plot the axis for the plot at the top
63 \plotxAxis[NoLabel]{Stichnummer}
64 \plotyAxis[NoLabel]{$F_{roll}$ in $\mega\newton$}
65
66 % plot only part of the data
67 \listplot[style=Database, xStart=11, xEnd=17]{\DataA}
68 \listplot[style=Result, xStart=8, xEnd=13]{\DataB}
69
70 \end{NumericDataPlot}
71
72 % put legend outside of the plot
73 \LegendDefinition[nrCols=1, LabelOrientation=r]{
74 \LegLine{style=Database} & Werte aus der Datenbank \\
75 \LegLine{style=Result} & Modell}
76 \end{center}