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
 Plotting Selection
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

kemeyer

39 Posts

Posted - 07/30/2009 :  09:16:30 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver.7 and Service Release (Select Help-->About Origin):
Operating System: xp

Hi,

In my program, I am trying to plot a selection into a template. My code looks like this:

wks.colSel($(colNum(Column1)),1);
wks.colSel($(colNum(Column2)),1);
worksheet -p 200 myTemplate;

After that code is called, I activate the worksheet again and deselect those columns. After running this code, I found it works with my some columns, and not others. The ones I have pick from are:

A(x1) B(y1) C(y1) D(x2)
The last two are added in the program , and they come up as y1 and x2. I don't know if that has anything to do with my error, but I figured I would include it.

When I try to graph the combo of CD, DB, or AC, I get this error:
"Your selection must include those with plot designations"
When I looked at the column properties, they were designated at x and y, so I don't know what is going on.

However, when I plot those same combos by going to the menu and plotting, I am able to without trouble or error. Why is this happening and how do I fix it?

Thanks,
Katie

kemeyer

39 Posts

Posted - 08/03/2009 :  2:00:08 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Nevermind, I figured it out. It was automatically designating the first column of the selection as X even if its plot designation was Y. I just had to insert the desired x columns before the y column that had been generated.
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