summaryrefslogtreecommitdiff
path: root/info/examples/lgc/3-3-16.mp
blob: 82c5e02073f1e6856f0e3062bfb1000e5b0647c9 (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
input graph
defaultfont:="ptmr8r";
warningcheck:=0;
beginfig(1)
path m[],w[];
def wcheck(expr decade,value) =
 augment.w1(decade,0);
 augment.w1(decade,value);
 augment.w1(decade+5,value);
 augment.w1(decade+5,0);
enddef;
def mcheck(expr decade,value) =
 augment.m1(decade+5,0);
 augment.m1(decade+5,value);
 augment.m1(decade+10,value);
 augment.m1(decade+10,0);
enddef;
draw begingraph(3.75in,2in);
gdata ("decade.dat",y,
  wcheck((scantokens y1),(scantokens y2));
  mcheck((scantokens y1),(scantokens y3)););
gfill m1--cycle;
gdraw w1;
glabel.bot (btex Number of burials per decade
     ($n \approx 4300$) etex,OUT);
frame.llft;
endgraph rotated 90;

endfig;
end;