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
 Accessing multiple datasets within one 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
lunchpack Posted - 09/03/2014 : 10:20:53 AM
Origin Ver. and Service Release (Select Help-->About Origin): 9.0SR1
Operating System:win7 x64

Hi all,

I'm plotting a bunch of data into 6 layers, each layers containing multiple datasets.
In the labtalk guide I found the way to access e.g. the 4th dataset in layer 2 is by defining a range:

range rr = 2!4;

Now I want to set width and line style for this dataset:

set rr -d 1;
set rr -w 1000;

However these properties are now applied to layer2/dataset1 (2!1). This is reproducible for all layers.

A simple loop using

doc -e D {set %c -d 1;} is also only working for the first dataset within each layer.

Why is that? Am I missing something?

Thanks a lot!

Best,
lunchpack
3   L A T E S T    R E P L I E S    (Newest First)
lunchpack Posted - 09/03/2014 : 11:11:40 AM
hm ok, haven't tried origin c because i have no experience in C...
Castiel Posted - 09/03/2014 : 11:02:09 AM
quote:
Originally posted by lunchpack

Ok, so I found the problem but no solution:

The problem is, that all different datasets within one layer originate from one and the same column of the same workbook (but different ranges: row 1 to 100, 101 to 200 and so on). Origin names the datasets by WORKBOOKNAME_COLUMNNAME only, so when I loop over all layers I get:

doc -e D {type %c;}
book1_a
book1_a
book1_a
...

Hence I cannot access the individual datasets. Any ideas to circumvent this problem?

Is there any possibility to give the dataset a name when using x-function plotxy?

plotxy iy:=(1,2) plot:=200 ogl:=[%h]1!;

is plotting a new dataset into layer 1. any chances to manually give that a unique name?

Thanks a lot in advance!

Best regards,
lunchpack





Have a try of Origin C?


©c¡Ï   ¤È¥¹  ©f¨u©c  ©c¥ì    ¥Î¤³  ©c/     ©¦£¯
 ©c¨Ê¥Î ¤´¥¨  ¥ó ¨×   ¥ó¤á' ¥Ì©¦¥­   /¤í  ¥Õ©¦©f
   ¨Ö             ¦á          ©¦£þ  ©` ¥Õ   ©¦
                              ©¦
lunchpack Posted - 09/03/2014 : 10:44:33 AM
Ok, so I found the problem but no solution:

The problem is, that all different datasets within one layer originate from one and the same column of the same workbook (but different ranges: row 1 to 100, 101 to 200 and so on). Origin names the datasets by WORKBOOKNAME_COLUMNNAME only, so when I loop over all layers I get:

doc -e D {type %c;}
book1_a
book1_a
book1_a
...

Hence I cannot access the individual datasets. Any ideas to circumvent this problem?

Is there any possibility to give the dataset a name when using x-function plotxy?

plotxy iy:=(1,2) plot:=200 ogl:=[%h]1!;

is plotting a new dataset into layer 1. any chances to manually give that a unique name?

Thanks a lot in advance!

Best regards,
lunchpack


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