The Annotate facility maintains two pairs of internal
coordinates that are stored in internal variables:
-
coordinates of the last graphics
element drawn or the coordinates from the last move are stored in
the variables XLAST and YLAST
-
coordinates of the last text drawn
are stored in the variables XLSTT and YLSTT.
Many functions use these
internal coordinates as a starting point, relying on the coordinates
that are specified with the function as an ending point. For example,
in the BAR function, the (XLAST, YLAST) coordinate pair is used for
the lower left corner; the position defined by the X and Y variables
is used for the upper right corner. (For details, see
BAR Function.) These internal variables can also provide default coordinates
if X, XC, Y, or YC contains a missing value.
The internal coordinates
are automatically updated by some of the Annotate functions. The text
functions, LABEL and SYMBOL, update the (XLSTT,YLSTT) variables. The
BAR, DRAW, MOVE, PIE, and POINT functions update the (XLAST,YLAST)
variables.
You cannot explicitly
assign a value to XLAST, YLAST, XLSTT, or YLSTT because they are internal
variables. For example, you cannot make this assignment:
xlast=50;