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
 Graph: getting auto color

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 - 07/31/2018 : 06:02:24 AM
Origin Ver. and Service Release (Select Help-->About Origin): 2018b
Operating System:10

I have a graph with many dataplots, some as Yerr
I'd like to get the color of the error bars.
With GetFormat, the color returned is -9 with mean "auto", as far as i understand.

How can I get the actual color number ?

Thanks
8   L A T E S T    R E P L I E S    (Newest First)
couturier Posted - 10/31/2018 : 09:45:10 AM
quote:
Hi,

So far, it seems that we don’t have a general method to get the exact value of “auto”. We could only get the value of the treenode that the “auto” follows instead. Like the color of error bar:



Regards,
Yuki

OriginLab


Could you tell how I can get the value of the treenode that the "auto" follows ?
Couldn't find anything in GraphLayer treenode

thanks
couturier Posted - 09/10/2018 : 07:09:07 AM
I'm building a color gradient that goes from dataplot color to another color, if single color. So I must get the dataplot color.

But that's OK if I can't. The function will just do nothing if symbol color is -9 and no parent line.

quote:
if the plot is for example set to By Points mode, it will be not a single color then

Then the color is another value ( > 2*256^3) and I know it is a by point color
minimax Posted - 09/10/2018 : 04:23:21 AM
quote:
From here, how can I get that auto color?


What do you plan to make use of it if you can get the color?

The auto rule is quite complicated, and if the plot is for example set to By Points mode, it will be not a single color then.



Max
OriginLab Technical Support
yuki_wu Posted - 09/10/2018 : 02:14:01 AM
Hi,

I am sorry that it is a bug, and we have added this issue to our bug tracking database, ID: ORG-18955.

Sorry for the inconvenience.

Thanks,
Yuki

OriginLab
couturier Posted - 09/08/2018 : 1:06:49 PM
Just ran into a special case:

- plot line+symbol and set another color with toolbar icon shortuct
- change plot to scatter with toolbar icon shortcut

--> There is no more Line information but symbol color is set to auto (i.e -9)
From here, how can I get that auto color ????
yuki_wu Posted - 08/01/2018 : 10:34:52 PM
Hi,

Yes, I am afraid that there is no other good method so far.

Regards,
Yuki

OriginLab
couturier Posted - 08/01/2018 : 04:15:34 AM
quote:
We could only get the value of the treenode that the “auto” follows instead

This is exactly what I'm trying to do.
The Yerr dataplot treenode will tell me the wks range of the parent Y, but from there, do I need to loop over all plotted dataset to find that Y ?
yuki_wu Posted - 08/01/2018 : 02:20:22 AM
Hi,

So far, it seems that we don’t have a general method to get the exact value of “auto”. We could only get the value of the treenode that the “auto” follows instead. Like the color of error bar:



Regards,
Yuki

OriginLab

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