mmc.Hierarchy.color_dict()
- Hierarchy.color_dict(new_color_palette=False, mode='LEAF_DEPTH', default_color='#d3d3d3', **kwargs)
Provides a dictionary of colors associated with each subset in the hierarchy
- Parameters:
new_color_palette (
bool(default:False)) – False to return the current color_dict True replaces the hierarchy color system with a new cubehelix palettemode (
str(default:'LEAF_DEPTH')) – One of [“ZIGZAG”, “WIDTH”, “DEPTH”] The order to label the tree. If “LEAF” in mode, only create color dict for leaf nodesdefault_color (
str(default:'#d3d3d3')) – Hex code of the color default, for any subsets not already defined in the color palette**kwargs – Sent to sns.cubehelix_palette, a hue of > 1, and a rot >= 1 is recommended
- Returns:
colors – A dictionary of the colors for each subset of the hierarchy
- Return type:
Dict of subset of hierarchy to colors