如何在Python中可视化距离矩阵?

时间:2016-07-01 04:32:40

标签: python python-2.7 numpy scipy scikit-learn

我有一个距离矩阵(如DataFrame),我想创建一个类似于第二个图形的图来显示距离。 Python中是否有可用的绘图对象可视化距离矩阵?

enter image description here

enter image description here

1 个答案:

答案 0 :(得分:0)

尝试以下任何一项:

  1. NetworkX - 它可能用于绘制图形的python包。
  2. Graphviz - Graph Visualization Softwaregraphviz 0.4.10
  3. 首先,可以浏览Generating Graph Visualizations with pydot and Graphviz