| Author |
Topic  |
|
|
celarson
USA
8 Posts |
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 |
|
|
Mike Buess
USA
3037 Posts |
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 |
 |
|
|
celarson
USA
8 Posts |
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 |
 |
|
|
jab95005
USA
5 Posts |
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. |
 |
|
|
Mike Buess
USA
3037 Posts |
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
USA
5 Posts |
Posted - 06/16/2003 : 3:39:51 PM
|
Thanks much, Mike!
James
|
 |
|
| |
Topic  |
|