Previous Page | Next Page

The G3GRID Procedure

Example 4: Spline Interpolation


Procedure features:

GRID statement options:

AXIS1=

AXIS2=

SPLINE

Data set: NUMS (see Using the Default Interpolation Method)
Sample library member: GTGSPLIN

This example demonstrates the default interpolation method when used by the GCONTOUR procedure to generate a contour plot from the resulting output data set.

Contour Plot Using Default Interpolation (gtgsplin)

[A Contour Plot Generated After Default Interpolation]

The second plot, demonstrates the spline interpolation method when used by the GCONTOUR procedure to generate a contour plot from the resulting output data set.

Contour Plot Using Spline Interpolation (gtgsplin)

[A Contour Plot Generated After Spline Interpolation]

 Note about code
goptions reset=all border;
 Note about code
title "Contour Plot using Default Interpolation";
 Note about code
axis1 width=3;
 Note about code
proc g3grid data=nums out=numdef;
   grid y*x=z /
      axis1=-5 to 5 by .5
      axis2=-5 to 5 by .5;
   run;
 Note about code
proc gcontour data=numdef;
   plot y*x=z / 
      haxis=axis1 
      vaxis=axis1;
   run;
quit;
 Note about code
title "Contour Plot using Spline Interpolation";
 Note about code
proc g3grid data=nums out=numspl;
   grid y*x=z / spline
                axis1=-5 to 5 by .5
                axis2=-5 to 5 by .5;
run;
 Note about code
proc gcontour data=numspl;
   plot y*x=z / 
      haxis=axis1 
      vaxis=axis1;
   run;
quit;

Previous Page | Next Page | Top of Page