Chapter Contents

Previous

Next
The G3D Procedure

Example 2: Rotating a Surface Plot


Procedure Features
PLOT statement options:

CBOTTOM=
CTOP=
GRID
ROTATE=
YTICKNUM=
ZMAX=
ZMIN=
ZTICKNUM=

Data set: REFLIB.HAT
Sample library member: GR29N02

[IMAGE]

This example rotates the surface plot that is shown in Generating a Simple Scatter Plot and enhances its axes by adding reference lines and increasing the number of tick marks on the y and z axes. It also raises the plot above the horizontal x-y plane.
 Note about code
libname reflib 'SAS-data-library';
goptions reset=global gunit=pct border cback=white
         colors=(black blue green red)
         ftext=swiss ftitle=swissb htitle=6 htext=4;
 Note about code
title 'Surface Plot of HAT Data Set';
footnote j=r 'GR29N02 ';
 Note about code
proc g3d data=reflib.hat;
   plot y*x=z / grid
                rotate=45
                ctop=red
                cbottom=black
                yticknum=5
                zticknum=5
                zmin=-3
                zmax=1;
run;
quit;


Chapter Contents

Previous

Next

Top of Page

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