home *** CD-ROM | disk | FTP | other *** search
- program test;
- { this is a sample driver for the routines in plotlib. }
-
- uses plotlib;
-
- var i, x, y, theta : integer;
- outstring : vecstring;
- chstr : linestring;
- ch : char;
- plotstuff : datablock;
-
-
-
- begin
- with plotstuff do
- begin
- writeln ('Generating points to plot' );
- npoints := 201;
- for i := 1 to npoints do
- begin { fill the arrays }
- xdata [ i ] := ( i ) * 0.01 ;
- ydata [ i ] := 6000.0 + 4000.0 * sin( 8.0 * pi * xdata[i]) + 2000.0 * cos( 12.0 * pi * xdata [i] );
- end;
-
- { pick a plotting format }
-
- logplot ( plotstuff,'Time','Voltage' );
-
- { semilogplot ( plotstuff,'Time','Voltage' ); }
-
- { linearplot ( plotstuff,'Time','Volts',true, false ); }
-
- end;
-
- close ( aux ); { a nice gesture but not required }
- end.