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
 How to draw a straight line manually
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Mohamedb

Algeria
3 Posts

Posted - 02/16/2014 :  5:22:32 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi everybody,
How to draw a straight line manually in Origin8 to separate two zones on an existing graph.

Mohamedb

Algeria
3 Posts

Posted - 02/17/2014 :  4:24:50 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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.
Go to Top of Page

greg

USA
1378 Posts

Posted - 02/17/2014 :  4:51:47 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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.
Go to Top of Page

Mohamedb

Algeria
3 Posts

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

greg

USA
1378 Posts

Posted - 02/18/2014 :  08:56:06 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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.
Go to Top of Page

snowli

USA
1385 Posts

Posted - 02/18/2014 :  10:27:05 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
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