home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
200-299
/
ff267.lzh
/
Diglib
/
diglib.zoo
/
diglib
/
TRACCY.FOR
< prev
next >
Wrap
Text File
|
1989-06-20
|
732b
|
25 lines
SUBROUTINE TRACCY(XMIN,XMAX,Y,NPTS)
DIMENSION Y(NPTS)
C
C THIS SUBROUTINE TRACES THE LINE FROM X(1),Y(1) TO
C X(NPTS),Y(NPTS) WITH APPROPIATE CLIPPING.
C USE THIS ROUTINE WHEN CLIPPING IS DESIRED AND THE
C INDEPENDANT VARIABLE IS IMPLIED BY THE SUBSCRIPT
C USING EQUAL INTERVALS FROM XMIN TO XMAX.
C
INCLUDE PLTSIZ.PRM
C
DIMENSION AREA(4)
C
CALL GSSCLP(XVSTRT,XVSTRT+XVLEN,YVSTRT,YVSTRT+YVLEN,AREA)
CALL SCALE(XMIN,Y(1),VX,VY)
CALL GSMOVE(VX,VY)
10 DX = (XMAX-XMIN)/(NPTS-1)
DO 100 I=2,NPTS
CALL SCALE(XMIN+(I-1)*DX,Y(I),VX,VY)
CALL GSDRAW(VX,VY)
100 CONTINUE
CALL GSRCLP(AREA)
RETURN
END