1540 1

为何第二个曲线不显示虚线呢 [推广有奖]

  • 8关注
  • 2粉丝

讲师

33%

还不是VIP/贵宾

-

威望
0
论坛币
310 个
通用积分
0
学术水平
1 点
热心指数
1 点
信用等级
0 点
经验
15111 点
帖子
218
精华
0
在线时间
379 小时
注册时间
2012-10-31
最后登录
2020-8-31

楼主
慧(会)幸福 发表于 2013-6-3 19:04:14 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
我的程序如下,但是第二个曲线为何不显示虚线呢?

proc fcmp outlib=sasuser.funcs.math_stat;

  function g(u);
    if (u le  -0.25) then return (2*log((1+0.25*0.25)/(1+1.25*1.25)));
    if (u ge   1.25) then return (2*log((1+1.25*1.25)/(1+0.25*0.25)));
      else return(2*log((1+u*u)/(1+(u-1)*(u-1))));
  endsub;
run;

proc fcmp outlib=sasuser.funcs.math_stat;

  function f(u);
    return(2*log((1+u*u)/(1+(u-1)*(u-1))));
  endsub;
run;

options cmplib =sasuser.funcs;
data a;
do x=-5 to 5 by 0.01;
l=f(x);
lstar=g(x);
output;
end;
run;

proc gplot data=a;
plot l*x=1 lstar*x=2/overlay;
symbol1 i=join v=none;
symbol2 line=3;
label l='lr';
run;


二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:不显示 function sasuser options Overlay function return 程序

沙发
邓贵大 发表于 2013-6-3 22:01:10
The symbol statement doesn't work well without color specifications. I forgot the reason somebody mentioned long time ago.
/*
Controlling Consecutive SYMBOL StatementsIf you specify consecutively numbered SYMBOL statements and you want SAS/GRAPH to use each definition only once, use color specifications to ensure that each SYMBOL statement generates only one symbol definition. You can do the following actions:
  • specify colors on each SYMBOL statement, using the COLOR=, CI=, CV=, or CO= options. This method lets you explicitly assign colors for each definition. For example, these statements generate four definitions: symbol1 value=star color=green;symbol2 value=square color=yellow;symbol3 value=special color=cyan;symbol4 value=special color=orange;

  • specify a default color for all SYMBOL statements using the CSYMBOL= option in the GOPTIONS statement. This method makes it easy to specify the same color for each definition when you do not need more explicit color specifications.

  • limit the color list to a single color using the COLORS= option in the GOPTIONS statement. This method makes it easy to specify the same color for each definition when you want the color to apply to other definitions also, such as PATTERN definitions*/





  1. symbol1 c=blue i=join v=none;
  2. symbol2 c=red line=3
复制代码
Be still, my soul: the hour is hastening on
When we shall be forever with the Lord.
When disappointment, grief and fear are gone,
Sorrow forgot, love's purest joys restored.

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-25 01:14