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
 select non contiguous columns for plotting
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

celarson

USA
8 Posts

Posted - 06/11/2003 :  12:39:42 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hope someone can come to my rescue yet again. I'd like to select several non-adjacent columns for plotting. I can use the the worksheet -s c1 r1 c2 r2 to plot columns that are next to each other but can't seem to figure out how to select non-adjacent columns for plotting, say for example only columns 3, 7, and 12.

Help for a labtalk command to do this?

many thanks, -carl

Mike Buess

USA
3037 Posts

Posted - 06/11/2003 :  1:40:20 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Carl,

This works in Origin 7...

wks.colsel(3,1);
wks.colsel(7,1);
wks.colsel(12,1);

Use 0 for the 2nd argument to deselect.

Mike Buess
Origin WebRing Member
Go to Top of Page

celarson

USA
8 Posts

Posted - 06/11/2003 :  3:47:53 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Mike,

Works like a charm. Been staring at the manual too long. Missed wks.colSel altogether. Thanks for the quick and helpful reply.

-carl
Go to Top of Page

jab95005

USA
5 Posts

Posted - 06/16/2003 :  3:10:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
what if i want to select every other column? can someone please write a script for that? thanks.
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 06/16/2003 :  3:32:15 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
This will select all odd-numbered columns...

for(i=1;i<=wks.ncols;i+=2) wks.colSel(i,1);

For even numbers start with i=2.

Mike Buess
Origin WebRing Member
Go to Top of Page

jab95005

USA
5 Posts

Posted - 06/16/2003 :  3:39:51 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks much, Mike!

James

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