Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 pyqtgraph 在 Python 中可视化控制流图。我有以下两个问题。
我尝试查看文档,但找不到。显然,我没有时间阅读所有内容!
虽然 pyqtgraph 很棒,但对于我的用例,我找到了一个更好的工具来做到这一点。
graphviz 是一个非常方便地开发控制流图的好工具,并且具有针对这个特定问题的大量功能。
对于方向,您可以pg.ArrowItem在每行的末尾添加一个(尽管这对于大型网络可能性能不佳),对于自连接,QtGui.QGraphicsEllipseItem可以与箭头结合使用。
pg.ArrowItem
QtGui.QGraphicsEllipseItem