【发布时间】:2012-06-27 12:44:26
【问题描述】:
我用 networkx 绘制了一个大图,想查看每个顶点的名称,不幸的是有太多难以阅读。环顾四周,我在 matplotlib 中找到了 datacursormode 的实现,但由于 networkx.draw 不返回对象,因此无法使它们工作。这是原始问题
Is there a matplotlib equivalent of MATLAB's datacursormode?
非常感谢
编辑:我可以通过编辑http://www.scipy.org/Cookbook/Matplotlib/Interactive_Plotting 让它工作,但理想情况下我会知道我选择了哪个顶点,这样我就可以改变相邻边缘的颜色。
【问题讨论】:
标签: python matplotlib graphing networkx