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
 Origin Forum
 Reference line expression

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
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

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