T O P I C R E V I E W |
AKazak |
Posted - 02/02/2021 : 2:43:10 PM OriginPro 2021b (64-bit) Beta1 9.8.5.53 Windows 7 Pro x64 SP1
Greetings!
I created a 1-to-1 crossplot graph comparing X to Y values. Not I want to develop expressions for reference lines in blue showing the narrowest corridor parallel to bisect including all data points:
To me, it seems that that the expression for the lower line is: x-L, where L=abs(min(plotdata(1, Y)-plotdata(1, X)))
However, this doesn't seem to be working. Can you suggest an effective workaround, please?
Thank you.
--- Andrey |
9 L A T E S T R E P L I E S (Newest First) |
AKazak |
Posted - 02/08/2021 : 11:13:24 AM This is how the resulting text object looks like:
--- Andrey |
AKazak |
Posted - 02/08/2021 : 11:09:24 AM quote: Originally posted by YimingChen
Well, in reference line setting, you can also use $() substitution to get the value. James
Dear James,
Great news! It is worth adding to help about on Reference Lines.
--- Andrey |
YimingChen |
Posted - 02/04/2021 : 3:10:20 PM Well, in reference line setting, you can also use $() substitution to get the value.
James |
YimingChen |
Posted - 02/04/2021 : 2:49:30 PM You can add a text object and use a piece of LT script, see below:
range -wx rx = 1;
range -wy ry = 1;
Text.text$ = $(abs(min(ry-rx)), .2);
James |
AKazak |
Posted - 02/04/2021 : 1:03:47 PM How do I add a text object showing the result of the following calculation for a scatter plot to the graph?
abs(min(plotdata(1, Y)-plotdata(1, X)))
Thank you.
--- Andrey |
AKazak |
Posted - 02/03/2021 : 4:24:48 PM quote: Originally posted by YimingChen
On the same Reference Lines setting dialog, find the Label node, and check the box Show. It will show the formula of the line.
James
Yes, it shows the general formula. However, it would be great to display the effective equation for the particular line. Besides the default font settings option would also be useful.
--- Andrey |
YimingChen |
Posted - 02/02/2021 : 3:48:02 PM On the same Reference Lines setting dialog, find the Label node, and check the box Show. It will show the formula of the line.
James |
AKazak |
Posted - 02/02/2021 : 3:33:56 PM quote: Originally posted by YimingChen
works for me. Do you have more than one plots on the graph? James
Dear James,
Hm... I started working fine for me as well. I will keep an eye on this.
How do I output the resulting expression (or at least L value) as a reference line label?
--- Andrey |
YimingChen |
Posted - 02/02/2021 : 3:00:24 PM works for me. Do you have more than one plots on the graph?
James |