Chapter Contents

Previous

Next
%POLY, %POLY2

%POLY, %POLY2



Begins drawing a polygon at (x, y). It also determines the color, fill pattern, and type of line that draws the polygon.

Variables affected: FUNCTION, X, Y, COLOR, LINE, STYLE


Syntax
See Also

Syntax

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

Parameter Description
x, y numeric constant or numeric variable name; the x and y coordinates of the beginning point of the polygon.
color literal; the color of the interior of the polygon unless style is EMPTY. Color can be any SAS/GRAPH color name. Use an asterisk (*) to indicate the previously defined value for color.
style literal; specifies the pattern that fills the polygon. Values for style are the following map patterns:
MSOLID
MS
a solid pattern.
MEMPTY
ME
an empty pattern.
Mdensity<style<angle>> a shaded pattern:

density can be 1...5

style can be X | N

angle can be 0...360.

See also the discussion of the fill patterns for maps in VALUE=.

line numeric constant or numeric variable name; the type of line to draw. Values are 1 through 46. See Specifying Line Types for representations of the line types.
width sets the size variable and controls the line thickness of the outline around the bar or polygon.

See Also

POLYCONT Function


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.