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
 problem with from data markers on multi layer plot

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
Andrewdst Posted - 04/04/2018 : 04:48:32 AM
Origin Ver. 2016 64 bit proand Service Release 2(Select Help-->About Origin):
Operating System: windows 7.

Hello,



I have a multi layer plot(actual 8 layers but 2 are shown).
I have data markers on the lower plot I have this active and I run the simple demonstration code.

%c=;
aa[1]=; ///check if the range is already assigned
del -rar aa; aa[1]=; /// delete it and check again
range aa = %c; %c[1]=; ///assign the range to %c, check %c[1]
aa[1]=; /// check the newly assigned range
type;type;

this produces:


datasets_E07S09X@2
aa[1]=896.030714159
Undefined variable: AA[1]
datasets_E07S09X@2[1]=2.5707869795045
aa[1]=896.030714159

all ok,
I then select the upper plot and run the same code, I get:

datasets_E07S08Z
aa[1]=896.030714159
Undefined variable: AA[1]
datasets_E07S08Z[1]=-0.93842899105578
aa[1]=896.030714159


what I get here is that the range variable, is first deleted, but when I reassign it, it remains pointing to the plot (lower) with the data markers. Hence aa[1] remains unchanged. while clearly %c[1] has changed. thus I am pointing the right dataset.


if I subsequently add data markers to the upper plot also so both layers have them. I get the following, this time first selecting the upper plot and then the lower plot.


datasets_E07S08Z
aa[1]=896.030714159
Undefined variable: AA[1]
datasets_E07S08Z[1]=-0.93842899105578
aa[1]=-13.580821174775


datasets_E07S09X@2
aa[1]=-13.580821174775
Undefined variable: AA[1]
datasets_E07S09X@2[1]=2.5707869795045
aa[1]=896.030714159

now it is behaving as expected.

it seems that if the layer and dataset is selected but is without data markers and other layers have them, then when assigning the range to %c it instead selects the last active layer and dataset that does have data markers.


Is this an error on my part or the program?


I do have the latest version of Origin (2018) so this may be fixed, but it is yet to be installed.

thanks
Andrew




1   L A T E S T    R E P L I E S    (Newest First)
yuki_wu Posted - 04/08/2018 : 04:46:19 AM
Hi Andrew,

This mechanism is by design. When you use Data Markers in a graph, it means that you are selecting a sub-range right now. This is to say Data Markers has a higher- priority.

Regards,
Yuki
OriginLab

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