dendrograms / astrodendro

Generate a dendrogram from a dataset
https://dendrograms.readthedocs.io/
Other
37 stars 36 forks source link

Fix use of subtree parameter in plot_tree and get_mask #188

Open tonywong94 opened 1 year ago

tonywong94 commented 1 year ago

This change seems needed to allow custom coloring of the dendrogram subtrees. My main use case is using different colors for trunks, branches, and leaves, but I also use subtree=False to color the structures according to a property like line width or virial parameter.

(This is from a previous pull request that got corrupted, so I have cleaned it up.)