home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_progs
/
prog_c
/
rexxplpt.lzh
/
REXXPLPLOT
/
EXAMPLES
/
EXAMPLE09.PLOT
< prev
next >
Wrap
Text File
|
1991-08-16
|
861b
|
34 lines
/* Example09.plot - Demonstration of contour plotting */
/* Modified for RexxPlPlot by Glenn M. Lewis - 9/12/89 */
address 'PlPlot'
say 'Please be patient...'
NPTS=41
/* Special RexxPlPlot function */
'plset_tr(0.05,0.0,-1.05,0.0,0.05,-1.05);'
do i=1 to 11; clevel.i = (i-6)*0.2; end i
mark=1500
space=1500
do i=1 to NPTS
xx = (i-1-(NPTS/2))/(NPTS/2)
do j=1 to NPTS
yy = (j-1-(NPTS/2))/(NPTS/2) - 1.0
z.i.j = xx*xx - yy*yy;
w.i.j = 2*xx*yy;
end j
end i
'plstar(1,1);'
'plenv(-1.0,1.0,-1.0,1.0,0,0);'
'plcont(z,NPTS,NPTS,1,NPTS,1,NPTS,clevel,11,xform);'
'plstyl(1,mark,space);'
'plcont(w,NPTS,NPTS,1,NPTS,1,NPTS,clevel,11,xform);'
'pllab("X Coordinate", "Y Coordinate","Contour Plots of Saddle Points");'
'pltext();'
'plend();'
exit 0