summaryrefslogtreecommitdiff
path: root/info/examples/lgc2/4-2-24.mp
blob: bd04301316dc4d89dde70f5cf45b1b89a3112126 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
% --- start of displayed preamble in the book ---
input piechartmp;
% --- end of displayed preamble in the book ---
% graphic converted to gray in book using 'color2gray'
defaultfont:="ptmr8r";
warningcheck:=0;
beginfig(1)
Segment(15,"Lions",auto);
Segment(6,"Tigers",auto);
Segment(10,"Hyaena",auto);
Segment(7,"Monkeys",auto);
Segment(5,"Warthogs",auto);
PieChart(2cm,0.3,60,220,0.2);
endfig;
end;