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]](images/gtgsplina.gif)
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]](images/gtgsplinb.gif)
![Note about code](../../../../common/63294/HTML/default/images/snbut.gif) |
goptions reset=all border; |
![Note about code](../../../../common/63294/HTML/default/images/snbut.gif) |
title "Contour Plot using Default Interpolation"; |
![Note about code](../../../../common/63294/HTML/default/images/snbut.gif) |
axis1 width=3; |
![Note about code](../../../../common/63294/HTML/default/images/snbut.gif) |
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](../../../../common/63294/HTML/default/images/snbut.gif) |
proc gcontour data=numdef;
plot y*x=z /
haxis=axis1
vaxis=axis1;
run;
quit; |
![Note about code](../../../../common/63294/HTML/default/images/snbut.gif) |
title "Contour Plot using Spline Interpolation"; |
![Note about code](../../../../common/63294/HTML/default/images/snbut.gif) |
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](../../../../common/63294/HTML/default/images/snbut.gif) |
proc gcontour data=numspl;
plot y*x=z /
haxis=axis1
vaxis=axis1;
run;
quit; |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.