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
/
EXAMPLE02.C
< prev
next >
Wrap
C/C++ Source or Header
|
1991-08-16
|
640b
|
36 lines
/* Demonstrates multiple windows */
#include <stdio.h>
#include <math.h>
main()
{
int i,j;
float vmin,vmax;
char text[3];
/* Divide screen into 16 regions */
plstar(4,4);
plschr(0.0,3.5);
plfont(4);
for (i=0; i<=15; i++) {
sprintf(text,"%d",i);
pladv(0);
vmin = 0.1;
vmax = 0.9;
for (j=0; j<=2; j++) {
plvpor(vmin,vmax,vmin,vmax);
plwind(0.0,1.0,0.0,1.0);
plbox("bc",0.0,0,"bc",0.0,0);
vmin = vmin + 0.1;
vmax = vmax - 0.1;
}
plptex(0.5,0.5,1.0,0.0,0.5,text);
}
plend();
}