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
Multiple groups within a single graph layer
New Topic
Reply to Topic
Printer Friendly
Author
Topic
sudd0030
11 Posts
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.
yuki_wu
896 Posts
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
Edited by - yuki_wu on 11/07/2016 02:17:38 AM
sudd0030
11 Posts
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.
Topic
New Topic
Reply to Topic
Printer Friendly
Jump To:
Select Forum
Origin Forum
Origin Viewer Forum
Origin Forum
Origin Forum for Programming
Forum for Python
LabTalk Forum
Forum for Origin C
Forum for Automation Server/COM and LabVIEW
Origin中文论坛
Origin 中文论坛 (Chinese Origin Forum)
Japanese Origin Forum
Origin日本語フォーラム (Japanese Origin Forum)
Origin on Linux
The Origin on Linux Forum
Private Forums
Distributor Forum
--------------------
Home
Active Topics
Frequently Asked Questions
Member Information
Search Page
The Origin Forum
© 2020 Originlab Corporation
Snitz Forums 2000