""" Manually specifying labels ========================== """ # %% # By default, data point labels are their :term:`node ID`\ s. They can be changed using the `labels` # parameter. import plotly.graph_objects as go import plotly.io as pio import scipy from pdendro import attach_dendrogram X = [[0.0], [1.0], [3.0], [6.0]] Z = scipy.cluster.hierarchy.linkage(X) fig = go.Figure() attach_dendrogram(fig, Z, labels=["a", "b", "c", "d"]) pio.show(fig)