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
 Multiple groups within a single graph layer

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
sudd0030 Posted - 11/06/2016 : 2:26:04 PM
Origin 2016
Operating System: Windows 10

I'm trying to form multiple groups of datasets within a single graph layer. So far, the command to group all datasets together works for me:

'layer -g;'

But as soon as I try to insert dataset/column indices nothing happens:
'layer -g [BeginIndex EndIndex];'

I've tried indexing starting at 0 and at 1 (labtalk starts at 1 for indexing, right?).

Anyone have insight on how to get this to work or how to troubleshoot?
I'm calling these commands via matlab and the COM server.
2   L A T E S T    R E P L I E S    (Newest First)
sudd0030 Posted - 11/07/2016 : 07:39:05 AM
Ah, so you don't need to include the brackets? Works fine now. Thanks!

Maybe the documentation should be changed, because the notation is not straightforward on this page:

http://www.originlab.com/doc/LabTalk/ref/Layer-cmd

-g; group all datasets in the active layer

Syntax: layer -g [BeginIndex EndIndex];

Minimum Origin Version Required: 8.6 SR1

Group datasets from BeginIndex to EndIndex. If no begin and end indexes are specified, it will group all datasets in the active layer.
yuki_wu Posted - 11/07/2016 : 01:20:05 AM
Hi,

For example, if you want to group the first dataset and the second one, you can try the following script:

layer –g 1 2;


Hope it helps.

Regards,
Yuki
OriginLab

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