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)
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)
|
goptions reset=all border; |
|
title "Contour Plot using Default Interpolation"; |
|
axis1 width=3; |
|
proc g3grid data=nums out=numdef;
grid y*x=z /
axis1=-5 to 5 by .5
axis2=-5 to 5 by .5;
run; |
|
proc gcontour data=numdef;
plot y*x=z /
haxis=axis1
vaxis=axis1;
run;
quit; |
|
title "Contour Plot using Spline Interpolation"; |
|
proc g3grid data=nums out=numspl;
grid y*x=z / spline
axis1=-5 to 5 by .5
axis2=-5 to 5 by .5;
run; |
|
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.