Author |
Topic  |
|
celarson
USA
8 Posts |
Posted - 03/03/2003 : 5:00:32 PM
|
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
|
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.
|
 |
|
celarson
USA
8 Posts |
Posted - 03/03/2003 : 6:37:18 PM
|
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 |
 |
|
Mike Buess
USA
3037 Posts |
Posted - 03/03/2003 : 6:43:22 PM
|
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 |
 |
|
celarson
USA
8 Posts |
Posted - 03/05/2003 : 01:15:03 AM
|
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 |
 |
|
jlm
China
1 Posts |
Posted - 08/26/2003 : 08:18:37 AM
|
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
|
 |
|
Mike Buess
USA
3037 Posts |
Posted - 08/26/2003 : 10:09:55 AM
|
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 |
 |
|
|
Topic  |
|