GSET Call
sets attributes for a graphics segment
- CALL GSET( attribute<, value>);
The inputs to the GSET subroutine are as follows:
- attribute
- is a graphics attribute.
The attribute argument can be
a character matrix or quoted literal.
- value
- is the value to which the attribute is set.
The value argument is specified
as a matrix or quoted literal.
The GSET subroutine enables you to change the
following attributes for the current graphics segment.
- aspect
- a numeric matrix or literal that specifies
the aspect ratio (width relative to height) for characters.
- color
- 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 refers to the th color in the color list.
- font
- a character matrix or quoted literal
that specifies a valid font name.
- height
- a numeric matrix or literal that specifies the character height.
- pattern
- a character matrix or quoted literal that specifies the
pattern to use to fill the interior of a closed curve.
- style
- a numeric matrix or literal that
specifies an index corresponding to a valid line style.
- thick
- an integer specifying line thickness.
To reset the IML default value for any one
of the attributes, omit the second argument.
Attributes are reset back to the default with
a call to the GOPEN or GSTART subroutine.
Single or double quotes can be used around this argument.
For more information about the attributes, see
Chapter 12.
Examples of valid statements follow:
call gset('pattern','m1n45');
call gset('font','simplex');
f='font';
s='simplex';
call gset(f,s);
For example, the following statement resets color to its default:
call gset("color");
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.