home *** CD-ROM | disk | FTP | other *** search
- program drw;
-
- {$i typedef.sys}
- {$i graphix.sys}
- {$i kernel.sys}
- {$i windows.sys}
- {$i axis.hgh}
- {$i polygon.hgh}
-
-
- var
- a:plotarray;
- f:real;
- filename:string[20];
- plotfile:text;
- n,i:integer;
-
- begin
- write('give a filename for plot data=:');
- readln(filename);
- assign(plotfile,filename);
- reset(plotfile);
- i:=1;
- while not eof(plotfile) do
- begin
- read(plotfile,f);
- if(i<20) then begin
- a[i,1]:=(i-1)*0.01;
- a[i,2]:=f;
- end;
- i:=i+1;
- end;
- clearscreen;
- n:=20;
- definewindow(1,0,0,Xmaxglb,ymaxglb);
- defineworld(1,0,-500,2,500);
- selectworld(1);
- selectwindow(1);
- initgraphic;
- drawaxis(9,-9,0,0,0,0,-1,-1,false);
- drawpolygon(a,1,n,0,0,0);
- repeat until keypressed;
- leavegraphic;
- end.
-