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 for Programming
 Forum for Origin C
 Get/Set dataplot label
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

couturier

France
291 Posts

Posted - 01/05/2022 :  1:28:51 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

Castiel

343 Posts

Posted - 01/05/2022 :  10:33:54 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
------------------------------------------
Go to Top of Page

couturier

France
291 Posts

Posted - 01/06/2022 :  10:32:11 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks a lot
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