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
 x= question
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

celarson

USA
8 Posts

Posted - 03/03/2003 :  5:00:32 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
This has got to be easy but I can't figure it out. I have a simple x,y plot and want a couple boundary lines included. I see how to plot a line, for example, at y=12 using the graph->add function graph dialog. Now how do I get origin to plot me a line at say, x=10?

Hideo Fujii

USA
1582 Posts

Posted - 03/03/2003 :  6:24:40 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You can try the following:

1)Make two columns (in a new worksheet, say Data2, or in your existing worksheet) like:
  A(X)    B(Y)
10 -1000
10 1000

Here, the range of B(Y) should cover your Y-axis scale.

2)Activate your graph window, choose "Graph:Add Plot to Layer:Line" menu, and include above X column (Data2_a) by "<->X", and Y column (Data2_b) by "<->Y"

Hope this is what you wanted.


Go to Top of Page

celarson

USA
8 Posts

Posted - 03/03/2003 :  6:37:18 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hideo, yes that's it exactly.

This is how I have been doing it but was wondering if there was a built in "feature". I was hoping for a something a bit more elegant (like the graph function feature) but as long the +/- y values are suitably high then there is no reason this can't be the workaround.

Thanks for your timely solution.

-carl
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 03/03/2003 :  6:43:22 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You can also use the draw command if you just want a vertical or horizontal marker...

draw -l -v x0; // draw a vertical line at X=x0
draw -l -h y0; // draw a horizontal line at Y=y0

Mike Buess
Origin WebRing Member
Go to Top of Page

celarson

USA
8 Posts

Posted - 03/05/2003 :  01:15:03 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks Mike,
That is a somewhat more elegant solution.
Also provides multiple line types, and arrowheads.

Appreciate the help - I wouldn't have figured that out.

-carl
Go to Top of Page

jlm

China
1 Posts

Posted - 08/26/2003 :  08:18:37 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Does someone have ideas about how to draw a vertical line at x0 with specified height (such as sin(x0)).

Thanks in advance.

Jiang.


quote:

You can also use the draw command if you just want a vertical or horizontal marker...

draw -l -v x0; // draw a vertical line at X=x0
draw -l -h y0; // draw a horizontal line at Y=y0

Mike Buess
Origin WebRing Member

Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 08/26/2003 :  10:09:55 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Jiang,

This will draw a line from (X0,0) to (X0,sin(X0))...

draw -l {X0,0,X0,sin(X0)};

Mike Buess
Origin WebRing Member
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