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
 Graph: getting auto color
 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 - 07/31/2018 :  06:02:24 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

yuki_wu

896 Posts

Posted - 08/01/2018 :  02:20:22 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

couturier

France
291 Posts

Posted - 08/01/2018 :  04:15:34 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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 ?
Go to Top of Page

yuki_wu

896 Posts

Posted - 08/01/2018 :  10:34:52 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

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

Regards,
Yuki

OriginLab
Go to Top of Page

couturier

France
291 Posts

Posted - 09/08/2018 :  1:06:49 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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 ????
Go to Top of Page

yuki_wu

896 Posts

Posted - 09/10/2018 :  02:14:01 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

minimax

360 Posts

Posted - 09/10/2018 :  04:23:21 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

couturier

France
291 Posts

Posted - 09/10/2018 :  07:09:07 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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

Edited by - couturier on 09/10/2018 07:11:51 AM
Go to Top of Page

couturier

France
291 Posts

Posted - 10/31/2018 :  09:45:10 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
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