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
 All Forums
 Origin中文论坛
 Origin 中文论坛 (Chinese Origin Forum)
 MATLABCallOrigin设置线条颜色

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
lisa2021 Posted - 12/06/2021 : 11:35:25 PM
Origin Ver. and Service Release (Select Help-->About Origin):
Operating System:
您好,MATLABCallOrigin官方例程中,曲线画图颜色默认黑色,请问如何对多条曲线颜色分别进行设置呢,应该用什么命令,还望解答,谢谢!
1   L A T E S T    R E P L I E S    (Newest First)
yuki_wu Posted - 12/07/2021 : 9:24:12 PM
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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000