GSCRIPT Call
writes multiple text strings with special fonts
- CALL GSCRIPT( x, y, text<, angle><,
rotate><, height><, font>
- <, color><, window><,
viewport>);
The inputs to the GSCRIPT subroutine are as follows:
- x
- is a scalar or vector containing the x coordinates of the lower
left starting position of the text string's first character.
- y
- is a scalar or vector containing the y coordinates of the lower
left starting position of the text string's first character.
- text
- is a character vector of text strings.
- angle
- is the slant of each text string.
- rotate
- is the rotation of individual characters.
- height
- is a real number specifying the character height.
- font
- is a character matrix or quoted literal that
specifies a valid font name.
- color
- is a valid SAS color.
The color argument can be specified as a quoted text string
(such as 'RED'), the name of a character matrix containing
a valid color as an element, or a color number (such as 1).
A color number n refers to the nth color in the color list.
- window
- is a numeric matrix or literal specifying a window.
This is given in world coordinates and has the form
| {minimum-x minimum-y maximum-x maximum-y} |
- viewport
- is a numeric matrix or literal specifying a viewport.
This is given in normalized coordinates and has the form
| {minimum-x minimum-y maximum-x maximum-y} |
The GSCRIPT subroutine writes multiple
text strings with special character fonts.
The x and y vectors describe the coordinates of the lower
left starting position of the text string's first character.
The color argument can have more than one element.
Note: Hardware characters cannot always be obtained if you
change the HEIGHT or ASPECT parameters or if you use a viewport.
The coordinates in use for this
graphics command are world coordinates.
Examples of valid statements follow:
call gscript(7,y,names);
call gscript(50,50,"plot of height vs weight");
call gscript(10,90,"yaxis",-90,90);
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.