标签: scipy dendrogram
我想生成树状图,但是我不需要字典的输出,我只想拥有图表本身。我该怎么做? 我的代码是
import scipy.cluster.hierarchy as shc Z = shc.linkage(orte2, 'ward') shc.dendrogram(Z, leaf_rotation=0, leaf_font_size=8, orientation="right", labels=orte2.index)
谢谢!