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
 All Forums
 Origin Forum
 Origin Forum
 How to draw a straight line manually

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Mohamedb Posted - 02/16/2014 : 5:22:32 PM
Hi everybody,
How to draw a straight line manually in Origin8 to separate two zones on an existing graph.
5   L A T E S T    R E P L I E S    (Newest First)
snowli Posted - 02/18/2014 : 10:27:05 AM
BTW, in later versions, we have added Graph: Add Straight Line....

User can easily add Vertical or Horizontal straight line in the graph with options such as
Show the position value together with the line .
Moving it, the position value changes.

Thanks, Snow
greg Posted - 02/18/2014 : 08:56:06 AM
A graph window must be the active window ...

Try this:
draw -L -V (Y1+Y2)/2
Copy and paste that line to the Script or Command Window and press Enter.
Mohamedb Posted - 02/18/2014 : 03:47:02 AM
quote:
Originally posted by greg

With a graph active, type this in the Command Window:
draw -l -v 10
and press Enter.
Replace the 10 with the value on the X axis where you want the (vertical) line drawn. Or use:
draw -l -h 1
and press Enter to draw a horizontal line at Y = 1.
Double click the line to edit properties, make it moveable, etc.



Thanks greg
I followed exactly the steps above but it didn't work!
greg Posted - 02/17/2014 : 4:51:47 PM
With a graph active, type this in the Command Window:
draw -l -v 10
and press Enter.
Replace the 10 with the value on the X axis where you want the (vertical) line drawn. Or use:
draw -l -h 1
and press Enter to draw a horizontal line at Y = 1.
Double click the line to edit properties, make it moveable, etc.
Mohamedb Posted - 02/17/2014 : 4:24:50 PM
Thanks Christyli,
I w'd like to separate two particular zones on the graph in order to put comments corresponding to each part. I cannot do that using the line button of the tools toolbar (in the left side of the screen) because the line is drawn but cannot be selected and it will vanished quickly. Thanks for answering me.

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000