quote:
Originally posted by couturier
Origin Ver. and Service Release (Select Help-->About Origin): 2022
Operating System:win10
Hi,
I'm facing a basic issue and couldn't find any hint in help and forum.
1. How to set a column as dataplot label ?
2. How to get the column from which labels are drawn ?
In dataplot tree format, I only found an obscure number in Root.Label.Form that seems to be different than col UID
thanx
The column you set as label of a dataplot is called the COLDESIG_PLOTLABEL_FORM (in OC_const.h) modifier of the plot.
To set a modifier for a DataPlot, you can call DataPlot::SetModifier(...).
To get modifiers from a DataPlot, you can call DataPlot::GetModifiers(...).
The number you saw in the format tree can be calculated by okutil_get_ocolor_by_col(...). See https://www.originlab.com/doc/OriginC/ref/Okutil_get_ocolor_by_col
To get the column corresponding to a modifier, you can call okutil_get_col_by_ocolor(...).
------------------------------------------
Be The Change
You Want To See
In The World
------------------------------------------