Previous Page | Next Page

Language Reference

GSET Call

CALL GSET( attribute <, value> ) ;

The GSET subroutine is a graphical call that sets attributes for a graphics segment.

The arguments to the GSET subroutine are as follows:

attribute

is a graphics attribute. This argument can be a character matrix or quoted literal.

value

is the value to which the attribute is set. This 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 that contains a valid color as an element, or a color number (such as 1) that refers to a 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 that corresponds to a valid line style.

thick

an integer that specifies line thickness.

To reset the PROC 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 15.

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");
Previous Page | Next Page | Top of Page