【问题标题】:Despite 'closest' what other options are there for layout plot in igraph in python?尽管“最接近”python 中的 igraph 中的布局图还有哪些其他选项?
【发布时间】:2016-09-14 03:32:42
【问题描述】:

我已经详尽地查看了文档,但在 python 中使用布局时,我没有找到其他选项,而不是 hovermode= 选项的“最接近”选项。有什么帮助吗?

我的绘图函数是这样的:传递一个图(igraph.Graph())

import igraph 

def drawing_group(g, name='a'):
    layout = g.layout("fr")
    visual_style = {}
    visual_style["margin"] = 100
    visual_style['hovermode'] = 'closest'
    igraph.plot(g, 'g_%s.png' % (str(num) + name), **visual_style)

谢谢

【问题讨论】:

  • @Támas 专家,你在哪里?
  • 在我的白天工作中被埋没了;) 顺便问一下,hovermode 是什么?我什至不知道它的存在,我编写了 Python 接口。

标签: python layout plot igraph


【解决方案1】:

这里有几点:

  1. 您的问题似乎是希尔制定的。悬停模式存在 在由plotly 而不是igragh 本身制作的交互式绘图中。

  2. plotly 具有 hovermode,可以是“x”、“y”、“最接近”或 假的。

参考:

https://plot.ly/python/3d-network-graph/
https://plot.ly/r/reference/#layout-scene-hovermode

【讨论】:

    猜你喜欢
    • 2010-10-10
    • 2015-09-11
    • 1970-01-01
    • 2020-12-11
    • 1970-01-01
    • 2015-11-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多