home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
pascal
/
library
/
dos
/
plotter
/
driver.pas
next >
Wrap
Pascal/Delphi Source File
|
1988-02-18
|
919b
|
37 lines
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.