File: 3-3-11.mp

package info (click to toggle)
texlive-lang 2022.20230122-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,447,264 kB
  • sloc: perl: 61,377; xml: 53,781; makefile: 4,525; sh: 4,338; ansic: 2,892; python: 2,861; ruby: 1,031; lisp: 750; awk: 649; java: 159; sed: 142; csh: 25
file content (17 lines) | stat: -rw-r--r-- 313 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
input graph
defaultfont:="ptmr8r";
warningcheck:=0;
beginfig(1)
draw begingraph(2.5in,1.5in);
numeric p[]; path r;
for j := 0 upto 100: p[j]:=0; endfor
gdata ("ages.dat",y, age:=(scantokens y1);
 p[age]:=p[age] + 1;);
r:=(0,0)
 for j := 1 upto 100: --(j,p[j]) endfor;
gdraw r;
frame.llft;
endgraph;

endfig;
end;