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 Forum for Programming
 LabTalk Forum
 Add plot to layer

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 [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
iahuogbdfjbh Posted - 07/12/2011 : 06:17:26 AM
Origin Ver. and Service Release (Select Help-->About Origin): 8.5.1G SR2
Operating System: MS Windows 7

With LabTalk it is easy to create a new plot based on an existing template:
plotxy (1,2) plot:=200 ogl:=[<new template:=Test.otp name:=Test>];

And, with a very similar command, I can later plot another dataset to the same graph window. But doing this, a new layer is created for every dataset. What I would like to do is plotting an additional dataset to the same layer (as it is possible with the "add plot to layer" command). Can this also be done using LabTalk?

Thanks in advance,
Johannes
2   L A T E S T    R E P L I E S    (Newest First)
iahuogbdfjbh Posted - 07/12/2011 : 10:39:50 AM
OK, I didn't expect the answer to be that simple...

And yes, it works. Thank you very much!
LabTalk user Posted - 07/12/2011 : 09:14:15 AM
Hello,

Yes, Labtalk can handle that. Use the same X-function just with a little bit of different code at the end. It should look like this:
plotxy (1,2) plot:=200 ogl:=1;

The ogl is the graph layer you are plotting into, so putting a 1 there makes it plot into the first layer.

Hope this helps!
Patrick

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