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
 Add label to every curve at height of last Y value
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Z4uit

12 Posts

Posted - 03/07/2012 :  12:08:44 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 8.5.1
Operating System: Windows 7

Dear memebers of the Origin Forum,

Today I've searched for a nice way to put my stacked curves. I allready found the "stack lines by Y offset" mode and created a graph that has still to be tuned but starts to look nice.

The thing that is missing is the label of the curves representing the analysis of different samples. I don't need any y-scale so adjustments of the y-axis are allowed (now it is hidden). I want to place the label at the height of the last Y value of the curve at the right side of the graph with left aligning. The label must be connected to the long name (or another information row) so that if I change the order of the curves the name will switch together with it.

This seems like a very obvious thing to me, but I can't fin it in the help, nor on the internet. What I could find however was a nice example of how I want to present my curves in the deleted examples of originlab (third picture).

I hope somebody can help me with my (maybe a bit trivial) question!

Adriaan

Hideo Fujii

USA
1582 Posts

Posted - 03/07/2012 :  4:47:13 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Adriaan,

I'm not completely sure if the following is exactly what you wanted.
Anyway, please try the following:
1) Press the Data Reader tool button long (or to press the tiny triangle corner handle) to show the button flyouts, and select the "Annotation" button.
2) Click and select the last data points (utilize arrow keys for help, if needed), and double-click the data point. It shows the data point's coordinates and the row number.
3) You can move the label to where you want to. If you don't want the annotation line, select the line segment, and press DELETE key. If you only wants the Y value, double-click the label, and change the notation to "$(y)" from the default "($(x), $(y))[$(i)]".

Does this work for you?

--Hideo Fujii
OriginLab

Go to Top of Page

Z4uit

12 Posts

Posted - 03/08/2012 :  07:45:21 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Dear Hideo Fujii,

Thanks for your quick response, but unfortunately this is not what I wanted, although it comes close... What I want is a figure like this, so no values, but a text label at the height of the last y-value of the curve. [a), b), c) etc. in this case]

This seems very easy to me, and I can of course add it manually, but I want it to connect to the long name of the data column, instead of a), b), c) etc. In this way the label changes dynamically when I change the columns or column name.

I hope now it is more clear of what I want to achieve.

Adriaan
Go to Top of Page

Hideo Fujii

USA
1582 Posts

Posted - 03/08/2012 :  10:13:25 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Adriaan,

Instead of "($(x), $(y))[$(i)]" you can change this notation to "%(1,@LA)" to show
the long name (if it doesn't exist, short name). Here "1" is the plot number, and can
be 2,or 3, etc. if your graph(layer) has more than one plots.
So, please update the contents of the annotation label like in this way.

Does this work?

--Hideo

Edited by - Hideo Fujii on 03/08/2012 10:15:49 AM
Go to Top of Page

Z4uit

12 Posts

Posted - 03/08/2012 :  10:48:04 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Yes this works , now the labels are updated by the long name. I already found out that @LA would work, only I did not know about the plot number. Thanks a lot!

The only point is that I still have to position the labels myself since it is appearing on a different height than the last Y value although it points to it with the pointer line. And I can not (easily, it might be possible) give a command for adding these labels automatically. But at least it works now, thanks!

Adriaan
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