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 Forum for Programming
 LabTalk Forum
 Add plot to layer
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

iahuogbdfjbh

2 Posts

Posted - 07/12/2011 :  06:17:26 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

LabTalk user

USA
35 Posts

Posted - 07/12/2011 :  09:14:15 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

iahuogbdfjbh

2 Posts

Posted - 07/12/2011 :  10:39:50 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
OK, I didn't expect the answer to be that simple...

And yes, it works. Thank you very much!
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