Python 工具可以可视化 100k 个顶点和 1M 个边?

发布于 2024-10-31 20:20:42 字数 1539 浏览 0 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

Spring初心 2024-11-07 20:20:42

我对此没有任何经验,但 tulip 似乎就是为此而设计的。

I don't have any experience with it, but tulip seems to be made for that.

柒七 2024-11-07 20:20:42

也许PyOpenGL?它可以与wxPython一起使用。

编辑: 刚刚尝试了没有任何优化的性能,绘制 100k 个顶点需要 0.2 秒,绘制 1M 条边需要 4 秒。

Maybe PyOpenGL? It can be used together with wxPython.

Edit: Just tried the performance without any optimization, it takes 0.2s to draw 100k vertices and 4s to draw 1M edges.

萌无敌 2024-11-07 20:20:42

您应该在官方 wxPython 邮件列表上询问。那里有人可能可以帮助您。但令我惊讶的是 matplotlib 无法做到这一点。它可能只需要您以某种方式重组代码。目前,在 wxPython 中绘图的主要方法是通过各种 DC、FloatCanvas 小部件之一或用于绘图的 wx.Plot 或 matplotlib。

You should ask on the official wxPython mailing list. There are people there that can probably help you. I am surprised that matplotlib isn't able to do this though. It may just require you to restructure your code in some way. Right now, the main ways to draw in wxPython are via the various DCs, one of the FloatCanvas widgets or for graphing, wx.Plot or matplotlib.

天暗了我发光 2024-11-07 20:20:42

您考虑过 graphviz 吗?尽管它从一开始就被设计为处理非常大的图(尽管 1M 边可能超出了它的能力),但它不是交互式的。

有一个 python 模块(pydot)可以使与 graphviz 的交互变得简单。再说一遍,不能肯定地说它会扩展到您的水平。然而,应该很容易发现:两者的安装都很简单。

嗯。

Have you considered graphviz? Not interactive although it was designed from the outset to handle very large graphs (although 1M edges may be beyond even it's capabilities).

There's a python module (pydot) that makes interacting with graphviz simple. Again, can't say for sure it'll scale to your levels. However, it should be easy to find out: installation of both is simple.

hth.

爱要勇敢去追 2024-11-07 20:20:42

您是否考虑过使用 ParaView访问?这是两个交互式绘图程序,旨在处理和绘制(非常!)大数据集。它们都有一个 Python 脚本接口,因此您可以在 Python 解释器中自动化/控制您的可视化。

Have you considered using ParaView or VisIt? These are two interactive plotting programs which are designed to deal with and plot (very!) large data sets. They both also have a Python scripting interface, so you can automate/control your visualizations from within the Python interpreter.

微暖i 2024-11-07 20:20:42

您尝试过 Gephi 吗?

我相信它的扩展性非常好。

Have you tried Gephi ?

I believe it scales very well.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文