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
 define vector end points using labtalk
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

superklee

Germany
Posts

Posted - 01/21/2005 :  05:33:16 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 6.1
Operating System:Win 2000

Hi guys,

I'm using a Worksheet consisting of 3*k columns, whereas the first of the 3 is the x value, the second is the y value and the third is the label value for each k-run.
Now I want to make a xyxy vector-graph using labtalk:

layer.include({worksheet}_{y1-column}, 218);

Usually if you define the first xy-dataset Origin assumes the two asscending columns as the second xy dataset. Since i have a set of 3 columns each, this doesn't work for me. I also cant just go without the label column because i need it in a scatter graph.
Manually i can assign the Vector End point, meaning the second xy dataset, in the Plot Details Dialog under the Vector tab.
Is there a way to assign the second xy dataset using labtalk?

thanks

Anita

polphys

Germany
Posts

Posted - 01/25/2005 :  05:48:46 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Was your question to make an xyxy-plot with the columns 1,2,4,5 (and so on?),omitting the label colums 3 and 6?
If the columns 1 and 4 are of type X and 2 and 5 are of type y, you can make an xyxy-plot with:

wks.colSel(1,1);wks.colSel(2,1);wks.solSel(4,1);wks.colSel(5,1);// selecting the desired columns
work -p 218 templatename;//plotting the selected columns as xyxy-plot

Unfortunately, I am a beginner and don't know, whether there exists a more elegant way using layer.include().

Edited by - polphys on 01/25/2005 05:49:31 AM
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