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

Coloring the Connecting branches #3

Open
chaunceychason opened this issue Jul 19, 2018 · 3 comments
Open

Coloring the Connecting branches #3

chaunceychason opened this issue Jul 19, 2018 · 3 comments

Comments

@chaunceychason
Copy link

Would it be possible to implement the color functionality contained in the original R code so that the middle panel isnt just grey? I have tons of items in my dendrogram, so currently the connecting bars are all running together as a single grey bar. Being able to change the color on those objects would be super helpful

@schlegelp
Copy link
Owner

schlegelp commented Jul 19, 2018

Could you clarify please? I see three options to colourise off the top of my head:

  1. Give connecting lines have the same colour as the leafs in the dendrogram. What if the left and the right leaf have different colours?
  2. Assign custom colours to each connecting line (i.e. per label)?
  3. Map entanglement to RGB value instead of shades of grey.

@chaunceychason
Copy link
Author

chaunceychason commented Jul 20, 2018 via email

@schlegelp
Copy link
Owner

Yes you're right. The function returns a matplotlib figure. It has three axes which you can get with fig.get_axes(). The first two are the left and right dendrogram respectively, the last one is the centre lines. Have a go at it and let me know if you figure out a way to colourise them that makes sense to you.

I'll try to implement a way to do this natively.

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

2 participants