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