![]() How can I use my leaf-color dictionary to customize the color of my dendrogram clusters? I don't want to use color_threshold b/c in my actual data, I have way more clusters and SciPy repeats the colors, hence this question. In my actual dataset, the colors mean something so I'm steering away from arbitrary color assignments. I've created D_leaf_color to customize the colors of the leaves associated with particular clusters. I saw that there was a link_color_func but when I tried using my color map ( D_leaf_color dictionary) I got an error b/c it wasn't a function. The default plot looks good, I just want to assign those colors differently. ![]() I've tried following but the colors get messed up for some reason. I want to color my clusters with a color map that I made in the form of a dictionary (i.e.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |