Author |
Topic  |
|
sean9898
USA
2 Posts |
Posted - 03/18/2013 : 09:41:39 AM
|
Origin Ver. 9.0 and Service Release 1 (Select Help-->About Origin): Operating System: Windows 7
Is it possible to automatically create a line with a specific slope in origin? For example, I have a velocity graph that I want to have a line with a slope of 300 mm/sec run through it, how would I do this?
Thanks! |
|
matthew@originlab.com
73 Posts |
Posted - 03/18/2013 : 10:17:43 AM
|
Hi,
One way to do this would be to:
1. Add a new column to your worksheet of data
2. Right click on the column and select "Set Column Values..."
3. Insert 300*[i] into the text box, and hit OK
--> The column should fill with values which are 300 times the row number
4. If the column is a Y column (ie. A(Y), B(Y), etc.) you should be able to select the entire column, and hover your mouse along the edge of the column selection, and see a graph icon next to your mouse, you can then just click and drag the data into your graph, and it should add the line.
Matthew OriginLab |
 |
|
sean9898
USA
2 Posts |
Posted - 03/18/2013 : 10:28:52 AM
|
What is [i] in 300*[i]? |
 |
|
matthew@originlab.com
73 Posts |
Posted - 03/18/2013 : 10:38:09 AM
|
It is a variable which represents the row number or row index. Alternatively you could select a column containing your X-data. So if, for example, your X-data was in column A, you could use 300*Col(A).
Matthew OriginLab |
 |
|
matthew@originlab.com
73 Posts |
Posted - 03/18/2013 : 1:14:32 PM
|
Hi,
I just wanted to show you one other option for this:
With your graph open as the active window, go to File > New > Function Plot > 2D Function Plot..., then you can enter a general expression for a line (in your case 300*x) and specify a range for the line, and it will plot to your graph.
Matthew OriginLab |
 |
|
|
Topic  |
|