summaryrefslogtreecommitdiff
path: root/info/examples/lgc2/D-3-3.mp
blob: 8e34535c867e30d5f767dd37935b7847322f8caa (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
% --- start of displayed preamble in the book ---

% --- end of displayed preamble in the book ---
defaultfont:="ptmr8r";
warningcheck:=0;
beginfig(1)
input graph
path m,w,last;
draw begingraph(2.4in,1.75in);
setrange((1800,0),(whatever,whatever));
gdata ("decade.dat",y,
  last:=((scantokens y1),0);
  augment.w(y1,y2);
  augment.m(y1,y3););
gfill (1800,0)--w--last--cycle
  withcolor red;
gfill (1800,0)--m--last--cycle
  withcolor green;
pickup pencircle scaled 3pt ;
gdraw w dashed withdots;
pickup pencircle scaled .75pt ;
glabel.bot (btex Number of burials per decade
     ($n \approx 4300$) etex,OUT);
endgraph;
endfig;
end;