GET:GPLOT_keywords:text
Default value: CURSOR = 1.0
CURSOR controls the justification of the character strings
that are drawn when using the command TEXT. The origin of
the text string is always the lower left corner of the string.
The justification determines where this origin is placed with
respect to a reference point.
If CURSOR <= 0.0, then XLOC and YLOC will be used to determine
the reference point for the character string, and the justification
will be determined by the value of CURSOR.
If CURSOR > 0.0, the user selects a reference point with the
terminal crosshair. A menu is available by typing the M key.
The justification of the string may be selected by typing the J
key and then selecting a justification, for example, CC or LU,
or by simply typing one of the special justification keys, R,
L, C, U, D, or V. No carriage return is needed after these
special keys.
The value of CURSOR will be updated to the value corresponding
to the justification that was chosen. For example, if CURSOR is
currently 5 and the user chooses the justification code VC, then
the value of CURSOR will be changed to 6. The values of %XLOC
and %YLOC will also be updated to the crosshair position that
was chosen.
Key | Result
typed | when CURSOR > 0.0
------+-------------------------------------------------------
M | display the menu
Q | quit, do not draw any text
/ | clear the alpha-numeric terminal screen
J | a menu of justifications will be displayed
| choose one of the following codes and type the RETURN key
| code | Justification chosen
| --------+------------------------------------------
| LL | lower left (CURSOR set to 1)
| LC | lower centre (CURSOR set to 2)
| LR | lower right (CURSOR set to 3)
| LU | lower left 90deg (CURSOR set to 4)
| LD | lower left 270deg (CURSOR set to 5)
| CV | lower centre 90deg (CURSOR set to 6)
| CL | centre left (CURSOR set to 7)
| UL | upper left (CURSOR set to 8)
| CC | center centre (CURSOR set to 9)
| UC | upper centre (CURSOR set to 10)
| CR | centre right (CURSOR set to 11)
| UR | upper right (CURSOR set to 12)
| --------+------------------------------------------
L | lower left ( LL )
C | lower centre ( LC )
R | lower right ( LR )
U | lower left with an angle of 90deg ( LU )
D | lower left with an angle of 270deg ( LD )
V | lower centre with an angle of 90deg ( CV )
X | lower left ( LL ) and
| using the y location selected by the crosshair and
| the x location that is stored in XLOC
Y | lower left ( LL ) and
| using the x location selected by the crosshair and
| the y location that is stored in YLOC
other | use current value of CURSOR for justification and
| use the crosshair position for the reference point
CURSOR | Justification
value |
-------+--------------
-1 | LL
-2 | LC
-3 | LR
-4 | LU
-5 | LD
-6 | CV
-7 | CL
-8 | UL
-9 | CC
-10 | UC
-11 | CR
-12 | UR
Default value: TXTANG = 0.0
TXTANG controls the angle at which text will be drawn, when
using the command TEXT.
TXTANG is the angle, in degrees, measured counterclockwise,
between the base line of the character string and a horizontal
line. The value of TXTANG will be ignored if CURSOR = -4.0, -5.0,
or -6.0.
Default value: %TXTHIT = 3.0
TXTHIT controls the height of text to be drawn, when using the
command TEXT. There are two forms:
TXTHIT -- is the height of the text in world coordinate units
%TXTHIT -- is the height, expressed as a percentage of the
height of the GPLOT window, that is,
TXTHIT = %TXTHIT*(YUWIND-YLWIND)/100.
Default value: %XLOC = 50.0
XLOC controls the horizontal reference position of a character
string drawn using the command TEXT. This reference point is
used for text justification. See the explanation of CURSOR for
how XLOC will be used. XLOC will be used if CURSOR < 0, or if
the X key is typed when drawing text in interactive mode. The
value of %XLOC is updated after each TEXT command. There are two
forms:
XLOC -- is the horizontal coordinate, in world coordinate units,
of the reference point
%XLOC -- is the horizontal coordinate, expressed as a percentage
of the width of the GPLOT window, that is,
XLOC = XLWIND+%XLOC*(XUWIND-XLWIND)/100.
Default value: %YLOC = 50.0
YLOC controls the vertical reference position of a character
string drawn with the command TEXT. This reference point is used
for text justification. See the explanation of CURSOR for how YLOC
will be used. YLOC will be used if CURSOR < 0, or if the Y key
is typed when drawing text in interactive mode. The value of
%YLOC is updated after TEXT command. There are two forms:
YLOC -- is the horizontal coordinate, in world coordinate units,
of the reference point
%YLOC -- is the horizontal coordinate, expressed as a percentage
of the height of the GPLOT window, that is,
YLOC = YLWIND+%YLOC*(YUWIND-YLWIND)/100.