14.03.2014 Views

Scripting Guide - SAS

Scripting Guide - SAS

Scripting Guide - SAS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 12 <strong>Scripting</strong> Graphs 411<br />

Drawing Lines, Arrows, Points, and Shapes<br />

Ovals<br />

)<br />

Oval draws an oval inside the rectangle given by its x1, y1, x2, and y2 arguments:<br />

new window("Ovals",<br />

graph box(framesize(200,200),<br />

pen color(1); oval(0,40,60,0);<br />

pen color(3); oval(10,60,70,10);<br />

pen color(4); oval(50,90,90,50);<br />

pen color(5); oval(0,80,70,70)));<br />

Oval also uses the optional fifth argument, fill. Specify a zero to get an unfilled rectangle, and a one to<br />

get a filled oval. The oval is filled with the current fill color. The default value for fill is 0.<br />

Figure 12.15 shows rectangles and ovals, drawn both filled and unfilled. Notice that filled rectangles do not<br />

have outlines, while ovals do. If you want a filled rectangle with an outline, you must draw the filled<br />

rectangle, and then draw an unfilled rectangle with the same coordinates.<br />

Figure 12.15 Rectangles and Ovals, Unfilled and Filled

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!