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
 Vertical Line in 2D Graph
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

PatriciaN

Poland
2 Posts

Posted - 04/30/2018 :  09:46:38 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 2018 (64 bit) b9.5.0.193 (Academic)
Operating System: Windows 10 Pro (64 bit)

The problem:
I want to draw a vertical line with specific dimensions (x and y) on my 2D graph. The problem is that if I use option: [Graph -> Add Straight Line ...] I can only specify the x-coordinate but I can not specify the y-coordinate (which is simply the length of this line).
How to do this?
PS: The image presents the result which I want to achieve: I want a black graph of data (already done) and additional red lines in exact positions with exact height.

Thank you

https://my.originlab.com/ftp/forum_and_kbase/Images/Graph.pdf

arstern

USA
237 Posts

Posted - 04/30/2018 :  11:01:22 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

I believe the only way to easily do this is to use the Script Window. To open the script window Select the Window Menu and Select Scrip Window. The Script Window dialog will appear.

Then input: draw -d 0 -l {x1, y1, x2, y2};

And Select Enter

Here is the documentation on drawing a line on a graph: https://www.originlab.com/doc/LabTalk/ref/Draw-cmd

Thanks
Aviel
OriginLab
Go to Top of Page

PatriciaN

Poland
2 Posts

Posted - 04/30/2018 :  11:38:24 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you. That was exactly what I needed.
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