scipy 1.10.1 Pypi GitHub Homepage
Other Docs

dendrogram(Z, p=30, truncate_mode=None, color_threshold=None, get_leaves=True, orientation='top', labels=None, count_sort=False, distance_sort=False, show_leaf_counts=True, no_plot=False, no_labels=False, leaf_font_size=None, leaf_rotation=None, leaf_label_func=None, show_contracted=False, link_color_func=None, ax=None, above_threshold_color='C0')



Z : ndarray
p : int, optional
truncate_mode : str, optional
color_threshold : double, optional
get_leaves : bool, optional
orientation : str, optional
labels : ndarray, optional
count_sort : str or bool, optional
distance_sort : str or bool, optional
show_leaf_counts : bool, optional
no_plot : bool, optional
no_labels : bool, optional
leaf_rotation : double, optional
leaf_font_size : int, optional
leaf_label_func : lambda or function, optional
show_contracted : bool, optional
link_color_func : callable, optional
ax : matplotlib Axes instance, optional
above_threshold_color : str, optional


R : dict

See Also



See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them

GitHub : /scipy/cluster/
type: <class 'function'>