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
 Vertical Line in 2D Graph

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
PatriciaN Posted - 04/30/2018 : 09:46:38 AM
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
2   L A T E S T    R E P L I E S    (Newest First)
PatriciaN Posted - 04/30/2018 : 11:38:24 AM
Thank you. That was exactly what I needed.
arstern Posted - 04/30/2018 : 11:01:22 AM
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

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