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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
%%
%% Ein Beispiel der DANTE-Edition
%%
%%
%% Copyright (C) 2010 Herbert Voss
%%
%% It may be distributed and/or modified under the conditions
%% of the LaTeX Project Public License, either version 1.3
%% of this license or (at your option) any later version.
%%
%% See http://www.latex-project.org/lppl.txt for details.
%%
%%
%% ====
% Show page(s) 1
%%
\documentclass[]{exaarticle}
\pagestyle{empty}
\setlength\textwidth{352.81416pt}
\setlength\parindent{0pt}
\StartShownPreambleCommands
\usepackage{pst-plot}
\makeatletter
\pst@def{ScalePoints}<% Rückgängig machen.
/y ED /x ED
counttomark dup dup cvi eq not { exch pop } if
/m exch def /n m 2 div cvi def
n { y mul m 1 roll x mul m 1 roll /m m 2 sub def } repeat>
\makeatother
\def\Data{%
0 0 20 0 40 0 % P0 P1 P2
10 2 30 2.5 50 1.8 % P3 P4 P5
30 4 48.5 3.7 70 4 % P6 P7 P8
10 5.3 30 5 50 5.1 % P9 P10 P11
}
\StopShownPreambleCommands
\begin{document}
\psset{xunit=1mm, yunit=5mm}
\begin{pspicture}(0,-1)(70,7.5)
\psaxes[Dx=10,Dy=2]{->}(0,0)(0,-0.5)(70,7.5)
\psset{linewidth=1pt}
% horizontal
\listplot[nStart=0,nEnd=2]{\Data}
\listplot[linecolor=red,nStart=3,nEnd=5]{\Data}
\listplot[linecolor=blue,nStart=6,nEnd=8]{\Data}
\listplot[linecolor=green,nStart=9,nEnd=11]{\Data}
% vertikal
\psset{nStep=3}
\listplot[nStart=0,nEnd=9]{\Data}
\listplot[linecolor=red,nStart=1,nEnd=10]{\Data}
\listplot[linecolor=blue,nStart=2,nEnd=11]{\Data}
\end{pspicture}
\end{document}
|