SAS中文论坛
标题:
领略一下SAS的三维绘图功能
[打印本页]
作者:
shiyiming
时间:
2003-11-6 22:31
标题:
领略一下SAS的三维绘图功能
一段绘制三维图形的SAS程序,各位领略一下SAS的强大绘图功能吧!
(这里目前无法贴图,请在自己的机器上运行,观察图形效果)
ods listing close;
ods html file="your_filename.htm";
goptions reset = all
device = activex
gunit = pct
border
xpixels = 640
ypixels = 480
htitle = 4
htext = 4
cback = CXFFF7CE
colors = (CX00FF94 CX00C4FF CX001FFF CX8400FF CXFF00D4);
data hat;
do x=-5 to 5 by 0.25;
do y=-5 to 5 by 0.25;
z=sin(sqrt(x*x+y*y));
output;
end;
end;
run;
title1 'Surface Plot of HAT Data Set';
title2 'Quadrant One';
proc g3d data=hat;
plot y*x=z / des='Hat'
grid;
run;
quit;
ods html close;
ods listing;
欢迎光临 SAS中文论坛 (http://mysas.net/forum/)
Powered by Discuz! X3.2