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
 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Get/Set dataplot label

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
couturier Posted - 01/05/2022 : 1:28:51 PM
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
2   L A T E S T    R E P L I E S    (Newest First)
couturier Posted - 01/06/2022 : 10:32:11 AM
Thanks a lot
Castiel Posted - 01/05/2022 : 10:33:54 PM
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
------------------------------------------

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000