%POLY, %POLY2 Annotate Macros

Begins drawing a polygon at the specified coordinates and determines the color, fill pattern, and line type of the polygon.

Variables written out:FUNCTION, COLOR, LINE, STYLE, X, Y,
Requirement:You must run the %ANNOMAC macro before using this or any of the other SAS/GRAPH annotate macros. See Making the Macros Available.

Table of Contents

Syntax

%POLY (x, y, color, style, line);
%POLY2(x, y, color, style, line, width);

Parameters

x, y

specify the starting point for a new polygon. Values can be numeric coordinates, numeric constants, or numeric variables.

SeeX Variable and Y Variable

color

specifies the optional polygon fill color using a character string without quotation marks. Use an asterisk (*) to specify the previous value of the color parameter.

TipUse the %POLYCONT Annotate Macro to specify the color of the polygon outline.
SeeCOLOR Variable

style

specifies the fill pattern for the polygon, using a character string without quotation marks.

SeeSTYLE Variable: Patterns for the POLY function for valid style values.

line

specifies the polygon's line type, which can be continuous or segmented. The value can be a number, a numeric constant, or a numeric variable.

SeeLINE Variable for the POLY function for valid line values.

width

specifies the width of the polygon's outline and optional fill lines. The value can be a number, a numeric constant, or a numeric variable.

SeeSIZE Variable for the POLY function for valid width values.

See Also

Last updated: January 17, 2025