Code:
\RequirePackage{filecontents}
\begin{filecontents*}{test.dat}
1980 645.46 421.3 946.21 610.42
1981 640.12 419.6 922.93 595.62
1982 619.75 403.52 901.07 577.34
1983 610.04 393.53 930.44 598.01
1984 591.08 376.23 972.45 634.94
1985 590.18 377.78 949.75 633.74
1986 567.88 366.82 876.91 588.49
1987 547.98 348.35 883.24 593.11
1988 535.67 340.67 875.85 592.42
1989 521.17 332.91 854.27 562.44
1990 510.43 326.92 863.38 560.97
1991 500.05 316.51 857.58 549.03
1992 473.08 299.71 886.59 556.39
1993 472.48 297.08 1062.2 635.85
1994 451.4 286.05 1156.1 671.97
1995 442.72 277.7 1065 634.07
1996 428.31 272.01 991.3 606.46
1997 412.28 262.82 953.46 597.46
1998 412.28 262.82 953.46 597.46
1999 412.28 262.82 0 0
2000 412.28 262.82 0 0
\end{filecontents*}
\documentclass[11pt,titlepage, a4paper, oneside]{report}
\usepackage{pstricks-add}
\begin{document}
\readdata{\data}{test.dat}%
\pstScalePoints(1,1){1980 sub}{ }
\psset{xAxisLabel=year,yAxisLabel=[N],
xAxisLabelPos={3.5cm,-1cm},xAxisLabelPos={c,-0.39in},
yAxisLabelPos={-0.45in,c},llx=-1.5cm,lly=-1.2cm}
\psgraph[Ox=1980, Dx=5,Dy=100,axesstyle=frame,
tickstyle=inner,ticksize=0 5pt]{->}(0,0)(20,1200){8cm}{8cm}
\listplot[plotNo=1,plotNoMax=4,showpoints,
dotstyle=o,plotstyle=line,linecolor=black,linewidth=1pt]{\data}
\listplot[plotNo=2,plotNoMax=4,showpoints,
dotstyle=o,plotstyle=line,linecolor=black,linewidth=1pt]{\data}
\listplot[plotNo=3,plotNoMax=4,showpoints,
dotstyle=x,plotstyle=line,linecolor=blue,linewidth=1pt,xEnd=1998]{\data}
\listplot[plotNo=4,plotNoMax=4,showpoints,
dotstyle=x,plotstyle=line,linecolor=red,linewidth=1pt,xEnd=1998]{\data}
\endpsgraph
\end{document}
Herbert
Lesezeichen