Author |
Topic  |
|
dominik.mierzwa
Poland
124 Posts |
Posted - 08/19/2025 : 03:37:52 AM
|
Origin Ver. and Service Release (Select Help-->About Origin): 2025b PRO Operating System: W11
Hi, 1. Is it possible to create multi-line labels above the bars in a chart? For example:
 I would like the second value to be on a new line.
2. Is it possible to refer to the column designated as Labels (column designation X, Y, Y-err, etc.) when creating a custom label? Currently, I do it this way:
 but I would like to automatically refer to the column designated as Labels.
Kind regards, Dominik |
|
snowli
USA
1446 Posts |
Posted - 08/19/2025 : 09:12:16 AM
|
Hi Dominik,
You can right click a column and choose Set as: Label to set a column as Label. If you highlight Y data and the label column together to plot, it will be used as the label automatically.
But we only support 1 label column per Y.
So you may still need to go to Plot Details if you want to use info. from multiple columns.
You can use %(CRLF) in between to show them into multiple lines. $(col(L)[i], .2)%(CRLF) $(Y, S.2)
Or you can add a new column in worksheet with such F(x) formula to combine the data in column L and B into a multi-line text with customized display format. Set it as Label column to plot.
=text(L, ".2")$+"%(CRLF)"+text(B, "S.2")$
Thanks, Snow |
 |
|
dominik.mierzwa
Poland
124 Posts |
Posted - 08/19/2025 : 12:10:46 PM
|
Thank you! The CRLF is exactly what I'm looking for.
quote: Originally posted by snowli
If you highlight Y data and the label column together to plot, it will be used as the label automatically.
But how do you refer to the label column of a particular Y in the custom label definition? In my example, I referred to Y's value using "(Y, S.2)". But what do I need to use to recall the label column?
EDIT I just read that using column designations to label data is an old method that remains for "backward compatibility." (source). I should use the label tab. However, the question remains: How do I refer to a column that is designated as a label for a particular Y data?
Kind regards, Dominik |
Edited by - dominik.mierzwa on 08/19/2025 12:20:58 PM |
 |
|
snowli
USA
1446 Posts |
Posted - 08/19/2025 : 3:35:08 PM
|
On Labels tab in PD, you can set Format string using either shortname e.g. $(col(A)[i], .2) %(CRLF) $(col(E)[i], S.1)
or using relative col, e.g. wcol(n)[i] refers to the plotted Y column. So wcol(n-1)[i] will refer to the column to its left. wcol(n+3)[i] will refer to the 3rd column to its right. E.g. $(wcol(n-1)[i], .2) %(CRLF) $(wcol(n+3)[i], S.1)
Thanks, Snow |
 |
|
dominik.mierzwa
Poland
124 Posts |
Posted - 08/20/2025 : 01:04:09 AM
|
It's not exactly what I'm looking for, but it'll do the job. Thanks!
Kind regards, Dominik |
 |
|
snowli
USA
1446 Posts |
Posted - 08/20/2025 : 09:45:57 AM
|
Hi Dominik,
I thought i replied in original reply that you can still right click a column and choose Set as: Label so (L) shows in column header. Then select the Y data and Label column to plot together. that column will be used as label. (u can see on Label tab in PD, that column is set as the label form.
Thanks, Snow |
 |
|
|
Topic  |
|
|
|