利用制作贺卡的代码的
利用sas制作贺卡的代码
朋友过生日、或者过年过节你都可以制作贺卡送给朋友。如果嫌手工版的太麻烦,那你也可以制作一份电子版的贺卡送给你的朋友。但是又有疑问了,如果你不是技术宅不会制作电子贺卡怎么办。下面就有一个利用sas制作贺卡代码。
Sas制作贺卡方法一:
下面这段代码使用传统的SAS/GRAPH制图。
* Make your card with your most favorite image;
filename getgraph \'C:newyear_g\';
goptions hsize=6 vsize=6;
proc gslide iframe=getgraph imagestyle=fit;
note move = (2, 2) height = 2 \'Emily Gao\';
run;
quit;
绘图的结果文件在SAS进程的临时文件目录下。
Sas制作贺卡方法二:
如果你的SAS版本支持 ODS GRAPHICS,则可以用 SGPLOT 绘图。觉得盗图签名太简单?没有数学公式和分析,太 low? 那就用数学公式算出心型图的数据,再嵌上你喜欢的图片。
* Make your card with your most favorite image drawn in a hart shape;
data heart;
length side $ 8;
pi=constant(\'PI\');
do t=0 to 60 by 100/200;
x = -.01*(-t**2+40*t+1200)*sin(pi*t/180);
y = .01*(-t**2+40*t+1200)*cos(pi*t/180);
side=\'left\';
output;
side=\'right\';
x=-1*x;
output;
end;
run;
data anno;
length function $5.;
retain function \'move\' function \'image\' width 50 drawspace \'graphpercent\';
x1 = 50; y1 = 50; image = \'C:sbjgaynewyear_g\';
imagescale = \'fit\';
function = \'image\';
output;
x1 = 75; y1 = 70; function = \'text\'; width=80; widthunit = \'percent\';
textcolor = \'black\'; textweight = \'bold\'; textsize=10;
x1=50; y1=15; label=\'To My Best Friend\';
output;
x1=50; y1=10; label=\'Emily Gao\';
output;
run;
ods listing;
ods graphics / width=600px height=600px noborder;
proc sgplot data=heart sganno=anno noautolegend;
series x=x y=y /group=side lineattrs=(color=red);
xaxis display=none;
yaxis display=none;
run;quit;
ods graphics off;
Sas制作贺卡方法三:
你还可以选四幅自己喜欢的图片,做个小四副贺卡。注意,gslide 和 ods graphics 这两种绘图技术使用的 annotation 数据格式略有不同。
* Make your card with your most 4 favorite images;
data anno;
length function $5.;
retain function \'move\' function \'image\' xsys \'3\' ysys \'3\';
x = 0; y = 0; function = \'move\';
output;
x = 50; y = 50; imgpath = \'C:sbjgaynewyear_g\';
style = \'fit\';
function = \'image\';
output;
x = 0; y = 50; function = \'move\';
output;
x = 50; y = 100; imgpath = \'C:sbjgaynewyear_g\';
style = \'fit\';
function = \'image\';
output;
x = 50; y = 50; function = \'move\';
人比较少。 四、最为关键的是运气 这个运气啥的还真没有什么好讲的 output;
x = 100; y = 100; imgpath = \'C:sbjgaynewyear_g\';
style = \'fit\';
function = \'image\';
output;
x = 50; y = 50; function = \'move\';
output;
x = 100; y = 0; imgpath = \'C:sbjgaynewyear_g\';
style = \'fit\';
function = \'image\';
output;
run;
proc gslide anno=anno;
run;quit;
* Make your card with your most 4 favorite images and ods graphics;
data null;
length side $ 8;
x = 0;
y = 0;
side=\'left\';
output;
run;
data anno;
length function $5.;
retain function \'move\' function \'image\' width 40 drawspace \'graphpercent\';
x1 = 25; y1 = 25; image = \'C:sbjgaynewyear_g\';
imagescale = \'fit\';
function = \'image\';
output;
x1 = 25; y1 = 70; image = \'C:sbjgaynewyear_g\';
imagescale = \'fit\';
function = \'image\';
output;
x1 = 75; y1 = 25; image = \'C:sbjgaynewyear_g\';
imagescale = \'fit\';
function = \'image\';
output;
x1 = 75; y1 = 70; image = \'C:sbjgaynewyear_g\';
imagescale = \'fit\';
function = \'image\';
output;
x1 = 75; y1 = 70; function = \'text\'; width=80; widthunit = \'percent\';
textcolor = \'black\'; textweight = \'bold\'; textsize=10;
x1=50; y1=50; label=\'To My Best Friend\';
output;
x1=50; y1=45; label=\'Emily Gao\';
output;
run;
ods listing;
ods graphics / width=600px height=600px noborder;
proc sgplot data=null sganno=anno noautolegend;
series x=x y=y /group=side lineattrs=(color=red);
xaxis display=none;
yaxis display=none;
run;quit;
ods graphics off;
以上全部就是利用SAS制作贺卡的代码的介绍。如果你想找制作贺卡服务,或者了解更多制作贺卡资讯,就上一品威客。一品威客入驻上百家专业制作贺卡公司,汇集全国千万优秀专业人才,提供最全面、最专业的制作贺卡服务。
合肥治疗子宫内膜炎医院骨关节炎有哪些症状
吉林白癜风医院哪家医院好
- 上一页:利用群推广站长网站群推广的方法呢
- 下一页:利用制作海报摇滚人物海报设计
-
清代白玉盘龙龙纹墨床
明代白玉螭琢墨床 尺寸:长:7.45厘米,宽:4.47厘米,高:1.27厘米,为重:...
2024-12-24
-
相约厦门旅商职校,成就梦想:休闲体育服务与管理专业欢迎您
【相约惠州市北区观光旅游商务职业学校 成就憧憬】 招生工程新技术介绍:...
2024-12-13
-
时间记录者 格拉苏蒂原创以精湛工艺展现计时码表的定格魅力
[手表之家 服装品牌新闻]数秒表是帕尔苏蒂原创的坚持。从数秒表熏陶的时代...
2024-11-03
-
丹阳限招120人,政策扶持,不限专业,在岗工作也可正常跟进,6月15日报名年末!
2022年青少年中学毕业生增强甄选人际关系活动接到 中学毕业生财政政策表述...
2024-09-05
-
CWNS0.7-85/60-QY改型1吨
30mg超偏极低氟两大技术 ULTRA-LOW NITROGEN TECHNOLOGY 使用两大偏极低氟气化胆两大...
2024-08-25
-
比拼性价比,还有比moto X30冠军海外版更卷的旗舰存在吗?
一代舰长一代魂,月内,智能个人电脑的“魂”已经升级成了骁龙8 Gen 1,现...
2024-07-27