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
 Adding lines to highlight x value at certain y
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

nsilvia

Switzerland
1 Posts

Posted - 07/20/2018 :  07:51:27 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi everybody.

I have a dataset with two curves. For both curves I would like to dra w a line at the corresponding x value for y=0.5. However, when I just use the command draw a straight line, the line will span through the entire y axis.
To make it more cleare, I would like to have something like this on my plot


How can I do it?

Thanks a lot for your help!

Silvia

Hideo Fujii

USA
1582 Posts

Posted - 07/20/2018 :  10:13:02 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Silvia,

You can add drop lines in both vertical and horizontal orientations from your desired data points from
"Drop Lines" tab in Plot Details dialog. If there is already a data point at the X location, you can
simply create a "special point" there (CTRL+double-click or slow-double-click+double-click), then
set the drop lines option.

If there is no data point at the X location, first run "Analysis> Math> Inter/Extrapolate Y from X"
to get the wanted data points, and add the scatter plot this to the current plot. You can show the
drop lines of this added scatter.



Is this what you were looking for?

--Hideo Fujii
OriginLab

Edited by - Hideo Fujii on 07/20/2018 10:24:34 AM
Go to Top of Page

arstern

USA
237 Posts

Posted - 07/20/2018 :  10:30:41 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

You can also use the script window so specify the line coordinates:



-c specifies the color
-w specifies the line width
-d specifies the type of line (dash, solid, dotted)
then you input {X1,Y1,X2,Y2}

See documentation: https://www.originlab.com/doc/LabTalk/ref/Draw-cmd

Aviel
Technical Support
OriginLab
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