14.03.2014 Views

Scripting Guide - SAS

Scripting Guide - SAS

Scripting Guide - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

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

)<br />

);<br />

Pie( 7.9, 7.9, 5.1, 5.1, 270, 360 ),<br />

Text( erased, {5.75, 6}, "8,8,5,5,270,360" ),<br />

Arc( 8, 8, 5, 5, 370, 260 ),<br />

Fill Color( "BlueCyan" ), // bottom left<br />

Pie( 1.1, 1.1, 3.9, 3.9, 50, 360 ),<br />

Text( erased, {1.75, 2}, "1,1,4,4,50,360" ),<br />

Arc( 1, 1, 4, 4, 370, 40 ),<br />

Fill Color( "Purple" ), // bottom right<br />

Pie( 7.9, 1.1, 5.1, 3.9, 270, 45 ),<br />

Text( erased, {5.75, 2}, "8,1,5,4,270,45" ),<br />

Arc( 8, 1, 5, 4, 55, 260 )<br />

Figure 12.13 Drawing Pies and Arcs<br />

Regular Shapes: Circles, Rectangles, and Ovals<br />

Circles<br />

Circle draws a circle with the center point and radius given. Subsequent arguments specify additional<br />

radii.<br />

New Window( "Circles",<br />

Graph Box( framesize( 200, 200 ),<br />

Circle( {50, 50}, 10, 12, 25 )<br />

)

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

Saved successfully!

Ooh no, something went wrong!