The Calcomp routines that I have show that SCALE defines FIRSTV and DELTAV
for the parameters given.
These parameters are then placed in the arrays X and Y as X(N+1) and X(N+2),
likewise for Y. AXIS starts with
FIRSTV and DELTAV, but modifies the location of "tic" marks using an array
called SAVT. This array establishes
a normalized and scaled value from 1.0 to 10.0. From this definition, a
power (10.0**ipower) function scales the
array to be plotted. So, the two definitions of FIRSTV and DELTAV may be
different. NUMBER uses the second
definition (using SYMBOL) to correctly place the scaled number along the
proper "Tic" marks. LINE places either
a series of dots, connected dots or line(s).
Dr. Norman Lawrence, " Compaaq Visual Fortran" shows how to use the various
screen functions supplied in
CVF 6.6 (b or c) to map the eventual Calcomp results into a screen
coordinate system. Functions nexx, neyy and
others are used to translate a point from a Calcomp space into a screen
space under the QUICKWIN option.
A demonstratioon *.for program :
subroutine start_TEST
USE DFLIB
USE DFWIN
implicit real*4(a-h,o-z)
DIMENSION X(75),Y(75)
DATA XMIN/0.0/,XMAX/8.0/,XLEN/4.0/,YMIN/0.0/YMAX/8000.0/
DATA YLEN/4.0/,N/73/
OPEN(99,FILE='',FORM='FORMATTED',STATUS='UNKNOWN') ! output text file
CALL GET_USER('CAR')
CALL PLOTS(-1,1,1)
! [ initializes plot file next_plot=19,
CALL FACTOR(.75)
! defines the type of screen
M1=N+1
! the actual size of the screen (XLEN=4.0
M2=N+2
! YLEN 4.0)]
C X(M1)=XMIN
C Y(M1)=YMIN
C X(M2)=XMAX/XLEN
C Y(M2)=YMAX/YLEN
call scale(x,xlen,n,1,0)
C CALL PLOT(1.250,1.250,-3)
CALL AXIS(0.,0.0,'CAR MODEL AGE(YRS.)',-19,XLEN,0.,X(M1),X(M2),1) !
call scale(y,ylen,n,1,1)
CALL AXIS(0.,0.0,'CAR VALUE (DOLLARS)',19,YLEN,90.,Y(M1),Y(M2),1)
X(1)=XMIN
DO 10 I=2,N
10 X(I)=X(I-1)+0.1111111
DO 30 I=2000,8000,500
Y(1)=FLOAT(I)
DO 20 J=2,N
20 Y(J)=0.972*Y(J-1)
CALL LINE(X,Y,N,1,0,0)
30 CONTINUE
CALL SYMBOL(2.5,3.0,0.165,'AVERAGE CAR VALUE',0.,17)
C status = RECTANGLE( $GBORDER, INT2(0), INT2(0), maxx, maxy )
CALL EXIT
END
<tho...@antispam.ham> wrote in message
news:jfngnt$gns$1...@speranza.aioe.org...