The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin中文论坛
 Origin 中文论坛 (Chinese Origin Forum)
 MATLABCallOrigin设置线条颜色
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

lisa2021

China
6 Posts

Posted - 12/06/2021 :  11:35:25 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin):
Operating System:
您好,MATLABCallOrigin官方例程中,曲线画图颜色默认黑色,请问如何对多条曲线颜色分别进行设置呢,应该用什么命令,还望解答,谢谢!

yuki_wu

896 Posts

Posted - 12/07/2021 :  9:24:12 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

你需要利用 Execute function 调用 LabTalk 来更改图形的属性(包括颜色,粗细等等)。例如:


    for i = 0:dps.Count-1
        dp = dps.Item(int32(i));
        ltString = append('set ', dp.Name, ' -c ', num2str(i+2));
        originObj.Execute(ltString);
    end


Regards, Yuki
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000