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
 gradient of drawn 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
wayneberndz Posted - 02/28/2005 : 09:35:20 AM
Hello,
is there a way to get the gradient of a line drawn with the Line Tool or created with Linear Fit?

Thanks in advance :)
1   L A T E S T    R E P L I E S    (Newest First)
easwar Posted - 02/28/2005 : 09:49:14 AM
Hi,

A line drawn on a graph, and a fit curve that results from analysis, are two different things.

The fit curve, such as LR fit curve, is based on a dataset, and you can get slope and intercept for that from the fit results. See this post for example:
http://www.originlab.com/forum/topic.asp?TOPIC_ID=3659

As for a line drawn on a graph using the drawing tool, it is a graph object that has a specific name. The default name for the 1st line on a graph is "line". You can then go to script window and type:
line.=
and it will list all properties of that object.
The properties line.x1, line.x2, line.y1 and line.y2 can then be used to compute the slope.

To find the name of your line object, click on the line and select, and then right-click and select Label Control. So if your line is named line2, then the properties will be line2.x1 etc.

Easwar
OriginLab




Edited by - easwar on 02/28/2005 09:51:04 AM

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