plot¶
- CondensedTree.plot(*, y='distance', leaf_separation=0.8, cmap='viridis', colorbar=True, log_size=False, label_clusters=False, select_clusters=False, selection_palette='tab10', continuation_line_kws=None, connect_line_kws=None, colorbar_kws=None, label_kws=None)¶
Creates an icicle plot of the condensed tree.
- Parameters:
y (
Literal['distance','density','ranks'], default:'distance') – The y-axis variable to plot. Can be one of “distance”, “density”, or “ranks”.leaf_separation (
float, default:0.8) – A spacing parameter for icicle positioning.cmap (
str|Colormap, default:'viridis') – The colormap to use for the segments.colorbar (
bool, default:True) – Whether to show a colorbar for the cluster size.log_size (
bool, default:False) – If True, the cluster sizes are plotted on a logarithmic scale.label_clusters (
bool, default:False) – If True, the cluster labels are plotted on the icicle segments.select_clusters (
bool, default:False) – If True, the segments representing selected clusters are highlighted with ellipses.selection_palette (
str|Colormap, default:'tab10') – A list of colors to highlight selected clusters.continuation_line_kws (
dict[str,Any] |None, default:None) – Additional keyword arguments for the continuation lines indicating the continuation of root clusters.connect_line_kws (
dict[str,Any] |None, default:None) – Additional keyword arguments for the connecting lines between segments.colorbar_kws (
dict[str,Any] |None, default:None) – Additional keyword arguments for the colorbar.label_kws (
dict[str,Any] |None, default:None) – Additional keyword arguments for the cluster labels.