Back|Forward
DCL:GRPH2:U[XYZ]PACK:
Cartesian Coordinate Axis Routines: Explanation of
Subroutines: Lower-Level Applications (LLA)
3.8.1 UXPAXS/UYPAXS
- 1.
- Function
Draws a line for the axis.
- 2.
- Call
CALL UXPAXS(CSIDE,ISLCT)
CALL UYPAXS(CSIDE,ISLCT)
- 3.
- Explanation of Parameters
CSIDE |
(C*1) |
Specifies the position of an axis to be drawn by a line. (See Section 3.2.) |
ISLCT |
(I) |
Specifies the attributes of the axis. (See Section 3.4.) |
- 4.
- Notes
- (a)
- The line index of the line for the axis is specified by the internal
variable 'INDEXTi'.
- (b)
- The internal variable 'ROFFzs' is dependent on the
position the axis component is drawn. This internal variable keeps the
distance from the axis of the label or title last drawn. As long as this
internal variable is not initialized, the label or title will be drawn
successively towards the outside of the window without any overlap.
- (c)
- A coordinate axis can be drawn in a position shifted parallel from its
original position. (See Section 3.2.) The amount of
offset is handled by the internal variable 'ROFGzs' which
is dependent on the position drawn. (The initial value is 0.) The offset for
X/Y axis can be changed using the subroutines
UXSAXZ(CSIDE,ROFFX) / UYSAXZ(CSIDE,ROFFY).
There are also subroutines for internally setting the
offset:
UXSAXS(CSIDE) / UYSAXS(CSIDE).
The amount of offset is calculated based on the
internal variable 'PAD2'.
- (d)
- The line segment for the axis is drawn only when the internal variables 'ROFFzs'
and 'ROFGzs' are equal. These internal
variables are set to 0 by the subroutine UZINIT. Normally, UZINIT
is described in GRFRM, so the user does not need to explicitly call UZINIT
when using GRPACK (see Chapter 2).