| Author |
Topic  |
|
|
Andrewdst
Australia
3 Posts |
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
|
Edited by - Andrewdst on 04/04/2018 04:54:17 AM |
|
|
yuki_wu
896 Posts |
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
|
 |
|
| |
Topic  |
|
|
|