📜  层次树状图 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:30.955000             🧑  作者: Mango

代码示例1
>>> ytdist = np.array([662., 877., 255., 412., 996., 295., 468., 268.,
...                    400., 754., 564., 138., 219., 869., 669.])
>>> Z = hierarchy.linkage(ytdist, 'single')
>>> plt.figure()
>>> dn = hierarchy.dendrogram(Z)