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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 gradient of drawn line?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

wayneberndz

Azerbaijan
Posts

Posted - 02/28/2005 :  09:35:20 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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 :)

easwar

USA
1965 Posts

Posted - 02/28/2005 :  09:49:14 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000