AXIS2 is similar to AXIS but allows additional flexibility to draw different tick sizes and types. Optionally, a possible exponent is determined and placed at the end of the axis title in the form of 10**n. In order to leave room for the labelling the axis should be removed at least by 3/4 inch from the edge of the plotter page. The length of the axis should be integer-valued. The (i)th (i=0 to ml-1) axis major tick is labeled with the value, xm+dx*i. AXIS2 plots a coordinate axis and its markings at any desired location and angle. For a log axis see LGAXS.
CALL AXIS2 (x,y,s,n,al,a,xm,dx<,nm,nn,ml,ts,nd,sm<,ic>>)
x,y (R): location of starting point of the axis
s (C): character variable containing the axis title
n (I): number of characters in the string
> 0 : axis labelling on positive side (anti-clockwise)
< 0 : axis labelling on negative side (clockwise)
(100's digit) = 0 : coordinate line, ticks and labels drawn
= 1 : line and ticks only--no labeling
(1000's digit) = 0 : numeric labels paralel to axis line
= 1 : numeric labels orthogonal to axis line
(10000's digit) = 0 : optional parameters ignored
= 1 : optional parameters used
(100000's digit) = 0 : color list ignored
= 1 : color list used
al (R): length of axis in plot units (real number, integer-valued)
> 0 : tick marks placed on same side of axis as title
= 0 : no action (return with no plotting)
< 0 : tick marks placed on opposite side of axis from title
a (R): angle at which the axis is to be drawn
xm (R): value of first marking on the axis
dx (R): increment for the axis markings
(NOTE: the following paramters are accessed only if the
magnitude of n is > 10000)
nm (I): number of minor tick marks between major ticks,
if not specified, 0 is used
nn (I): nn-th minor tick is high-lited in length, if
not specified, 0 is used (none)
ml (I): number of labeled major tick marks, if not specified
then one major tick per inch is used
< 0 use following additional parameters used
> 0 use following additional parameters ignored
(NOTE: the following paramters are accessed only if the
magnitude of n is > 10000 and ml < 0)
ts (R): character size of title and numbers, if not
specified, 0.15 is used
> 0 auto exponent scaling (x10 to power) is enabled
< 0 auto exponent scaling (x10 to power) disabled
nd (I): number of digits to right of decimal point, if not
specified 1 is used
sm (R): major tick length, if not specified 0.1 is used
note that minor tick length is 1/2 major tick length
ic (I): array of color indexes for axis colors
ic(1) : color value for axis line and ticks
ic(2) : color value for numbers on axis
ic(3) : color value for axis label
(color upon return if no exponent plotted)
ic(4) : color for auto exponent scale
(color upon return if exponent shown)