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
 1:1 slope reference line

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
ghoy Posted - 08/17/2013 : 12:34:07 PM
Hi,

I'm working with regression and correlation scatter plots. Is there a way to add a line that has slope of 1 and goes through the origin of the plot. I want to do this for multiple plots so I'd prefer to use existing options (software options). However, I'm open to new suggestions.

Thanks
Ghoy
2   L A T E S T    R E P L I E S    (Newest First)
Hideo Fujii Posted - 08/22/2013 : 12:10:58 PM
Hi,

Here is another version of Shirley's script - which draws a Y=X function plot on ANY XY range:
create myyeqx -f 100 "x";  //100 points on y=x curve
doc -e P
{
  plotxy myyeqx 200 ogl:=1;  //200:Line, Put rescale:=1 to rescale
};
Hope this also helps.

--Hideo Fujii
OriginLab
Shirley_GZ Posted - 08/19/2013 : 04:58:25 AM
Hi,

You can run the below script to add such line for all layers in current project:

//Loop all layers in current project.
doc -e L 
{
  draw -l {-1, -1, 1, 1};  //draw a line object from the point(-1,-1) to the point (1,1) on the current layer. 
};


Originlab Technical Service Team

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