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
 Plot Line with a specific slope
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

sean9898

USA
2 Posts

Posted - 03/18/2013 :  09:41:39 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

sean9898

USA
2 Posts

Posted - 03/18/2013 :  10:28:52 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
What is [i] in 300*[i]?
Go to Top of Page

matthew@originlab.com

73 Posts

Posted - 03/18/2013 :  10:38:09 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

matthew@originlab.com

73 Posts

Posted - 03/18/2013 :  1:14:32 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
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