Debian Codegraph @

pltestsuite/lineplot20.htm

raw symbols SCIP
1 <html><h1>lineplot20</h1><img src="lineplot20.gif"><p>
2 <a href="gall.using.html">How to download and try this example</a><br>
3
4 <pre><b>Usage: pl -gif lineplot20.htm
5
6
7 #proc getdata
8 data:
9 120301 0
10 120401 12
11 120501 0
12 120601 10
13 120701 9
14 120801 14
15 120901 13
16 121001 -
17 121101 18
18 121201 19
19 121301 17
20 121401 15
21 121501 18
22 121601 20
23 121701 17
24 121801 22
25
26
27 #for COL in 1,2,3,4
28
29 #if @COL = 1
30 #set XLEFT = 0.2
31 #set GAPMISSING = no
32 #elseif @COL = 2
33 #set XLEFT = 2.2
34 #set GAPMISSING = yes
35 #elseif @COL = 3
36 #set XLEFT = 4.2
37 #set GAPMISSING = small
38 #else
39 #set XLEFT = 6.2
40 #set GAPMISSING = autozero
41 #endif
42
43 // ------- set templates..
44 #procdef areadef
45 title:
46 box: 1.8 0.7
47 xautorange: datafield=1
48 yautorange: datafield=2
49 areacolor: gray(0.8)
50 #saveas: A
51
52 #procdef lineplot
53 xfield: 1
54 yfield: 2
55 gapmissing: @GAPMISSING
56 linedetails: color=red width=0.5
57 lastseglen: 0.1
58 #saveas: L
59
60 #proc areadef
61 #clone A
62 #if @COL = 1
63 title: standard
64 #elseif @COL = 2
65 title: gapmissing: yes
66 #elseif @COL = 3
67 title: gapmissing: small
68 #else
69 title: gapmissing: autozero
70 #endif
71 location: @XLEFT 4
72
73 #proc lineplot
74 #clone L
75
76 // -------------------------
77 #proc areadef
78 #clone A
79 #if @COL = 1
80 title: stairstep
81 #endif
82 location: @XLEFT 3
83
84 #proc lineplot
85 #clone L
86 stairstep: yes
87
88 // -------------------------
89 #proc areadef
90 #clone A
91 #if @COL = 1
92 title: filled
93 #endif
94 location: @XLEFT 2
95
96 #proc lineplot
97 #clone L
98 fill: pink
99
100 #proc lineplot
101 #clone L
102
103 // -------------------------
104 #proc areadef
105 #clone A
106 #if @COL = 1
107 title: stairstep filled
108 #endif
109 location: @XLEFT 1
110
111 #proc lineplot
112 #clone L
113 fill: pink
114 stairstep: yes
115
116 #proc lineplot
117 #clone L
118 stairstep: yes
119
120 #endloop