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
 select non contiguous columns for plotting

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
celarson Posted - 06/11/2003 : 12:39:42 PM
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
5   L A T E S T    R E P L I E S    (Newest First)
jab95005 Posted - 06/16/2003 : 3:39:51 PM
Thanks much, Mike!

James

Mike Buess Posted - 06/16/2003 : 3:32:15 PM
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
jab95005 Posted - 06/16/2003 : 3:10:00 PM
what if i want to select every other column? can someone please write a script for that? thanks.
celarson Posted - 06/11/2003 : 3:47:53 PM
Mike,

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

-carl
Mike Buess Posted - 06/11/2003 : 1:40:20 PM
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

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