OriginLab Corporation - Data Analysis and Graphing Software - 2D graphs, 3D graphs, Contour Plots, Statistical Charts, Data Exploration, Statistics, Curve Fitting, Signal Processing, and Peak Analysis


 

File Submission

Submit Files

Update Files

Guidelines

Add New Category


 

 Search:

 

 
 

File Exchange > Category:Data Exploration >
   Calculates slope & y-intercept for 2 points

Author:

OriginLab Technical Support

Date Added:

6/6/2003

Downloads:

2968

Last Update:

6/6/2003

Total Ratings:

3

File Size:

1419 Bytes

Average Rating:

File Name:

Pick2Points.ogs

Created Using:

Origin 7.0

File Version:

Working Versions:

7.0,6.1

License:

Free

Summary:

Graphically select two data points. A line will then be drawn between them and the slope and y-intercept values will be calculated.

Description:

This script allows the user to graphically select two data points. A line will then be drawn between them and the slope and y-intercept values will be displayed as a text label on the graph.

Save the downloaded file, Pick2Points.ogs, in your Origin root folder.

To run the script, you can open the Script Window by selecting Window:Script Window and typing the following:
run.file(Pick2Points.ogs)
Then press Enter.

You can associate this script with any of the user-defined toolbar buttons. Select View:Toolbars to open the Customize Toolbar dialog. On the Button Groups tab, select the User Defined group. Now choose one of the 10 buttons. With one of these buttons selected, click the Settings button. For the File Name enter Pick2Points.ogs. Leave the Section Name and Argument List blank. (Tool Tip Text and Status Bar: You can enter whatever text you want displayed in the Status bar as well as when you mouse over the button.) For Context, leave Window selected. Uncheck everything except for Graph. The button is then enabled only when you have a graph as the active window.

Drag this button out to the Origin workspace. You can also dock it on any of Origin's other toolbars.

When the script runs, the Data Reader tool is enabled and allows the user to pick 2 points. Once these 2 points are picked, the line is drawn between them and the slope and y-intercept values are displayed as a text label in the graph.

 

Reviews:

Rated by: weitong

Date: (4/11/2006 11:13:24 AM)

Good. If it can also use screen reader tool for clicking any points in the graph, then will be better.

Rated by: eastok

Date: (8/31/2004 4:58:59 AM)

thats great, dont forget to double click on points, when you select them by Data Reader Tool!

Rated by: vccer

Date: (6/30/2003 1:20:27 AM)

Submit Your Own Review

Please use this form to review this File Exchange submission. Please do not use this form to report a problem, bug, or suggestion. Instead, please contact the person who submitted this File Exchange item by clicking here.

User ID:   Password  
Join here

How would you rate this? (on a scale of 1 to 5, with 5 being extremely useful)
1    2    3    4    5

Your Comments (no bug reports please):

© OriginLab Corporation. All rights reserved.