Origin Ver. and Service Release (Select Help-->About Origin): 8.5.1 SR2
Operating System: Win 7 64bit
Hi,
I figured some problem adjusting the position of a label to my graph. I made a little script to do some evaluation of the plot and then post it as a label to the graph (see code attached). I added a new button and interestingly I get two different positions when I execute the script ones and after it a second time. My label position is calculated from the system coordinates X1, X2, Y1 and Y2. Im drawing two lines too, but without any problems. I added two figures to show my observation. In the pictures you can see that the coordinates are the same (marked with circles) for the two executions, but the calculated position differs from each other. What I am doing wrong here? Any comments or help will be appreciated.
Wilhelm
draw -n DVL -l {(X1+(X2-X1)*0.8),(Y1-(Y2-Y1)*0.46),(X1+(X2-X1)*0.8),(Y1-(Y2-Y1)*0.7)};
draw -n DVL2 -l {(X1+(X2-X1)*0.2),(Y1-(Y2-Y1)*0.46),(X1+(X2-X1)*0.2),(Y1-(Y2-Y1)*0.7)};
MyVar2 =%J-%L;
label -j 0 -s -sa -n MyL1
TM\t30C\t5C\tDelta T [mV]
%(TM2$)\t%J\t%L\t$(MyVar2)
\t%K\t%M;
X1=;
X2=;
Y1=;
Y2=;
MyL1.x = X1 + (X2 - X1) *0.51;
MyL1.y = Y1 - (Y2 - Y1) *0.55;
MyL1.fsize=16;
MyL1.x=;
MyL1.y=;

