Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change colors of traits pie charts #30

Open
k-sanchez opened this issue Aug 18, 2024 · 5 comments
Open

change colors of traits pie charts #30

k-sanchez opened this issue Aug 18, 2024 · 5 comments

Comments

@k-sanchez
Copy link

Hi all,

I was wondering if there is a way to change the default colors of the taxon traits pie charts,
I haven't seen any options to do that

Thanks!
Kevin

@husonlab
Copy link
Owner

husonlab commented Aug 18, 2024 via email

@liamxg
Copy link

liamxg commented Sep 4, 2024

Dear @husonlab,

how to add traits for pie plot?

Best,
Liam

@husonlab
Copy link
Owner

husonlab commented Sep 4, 2024

To define traits, after specifying the taxa block, you need to specify a traits block, using this syntax:

BEGIN TRAITS;
[TITLE {title};]
DIMENSIONS [NTAX=number-of-taxa] NTRAITS=number-of-traits;
[FORMAT
[LABELS={YES|NO}]
[MISSING=symbol]
[SEPARATOR={COMMA|SEMICOLON|WHITESPACE}]
;]
[TRAITLATITUDE latitude-trait-1 latitude-trait-2 ... latitude-trait-n;
TRAITLONGITUDE longitude-trait-1 longitude-trait-2 ... longitude-trait-n;]
TRAITLABELS label-trait-1 label-trait-2 ... label-trait-n;
MATRIX
trait data in specified format
;
END;

There is an example in the Examples directory. I will also add an annotated example to the documentation.

@k-sanchez
Copy link
Author

Dear Kevin, do you want control over individual color assignments or would it suffice to choose between different color schemes? Neither is currently available in the UI, but would be reasonably easy to add Thanks daniel

On Aug 18, 2024, at 04:59, Kevin I. Sánchez @.***> wrote: Hi all, I was wondering if there is a way to change the default colors of the taxon traits pie charts, I haven't seen any options to do that Thanks! Kevin — Reply to this email directly, view it on GitHub <#30>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTNU4U63ET4MKZUVVVG3RTZSCECXAVCNFSM6AAAAABMWJPR32VHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ3TCOJTGMZTMOI. You are receiving this because you are subscribed to this thread.

Dear Daniel, thanks for your answer.
I would prefer to have control over individual color assignments.
This would be useful if I want to match color schemes that I used for other plots, e.g. structure barplots

Kevin

@husonlab
Copy link
Owner

husonlab commented Sep 11, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants