在我的程序执行过程中连续绘制图形

2024-05-12 23:05:32 发布

您现在位置:Python中文网/ 问答频道 /正文

我有一个python代码,基本上是这样的:

dataset = loadDataset()
for i, data in enumerate(dataset):
   x1, y1 = generateNewPoint1(data)
   x2, y2 = generateNewPoint2(data)
   x3, y3 = generateNewPoint2(data)

   # here update the 3 graphs plotted on the user interface with points (x1,y1), (x2,y2) and (x3,y3)

有没有python库允许我在用户界面上绘制这样的图形? 注意:在界面上,我还想在每次迭代时显示i的当前值,并允许用户使用“浏览”按钮加载一些数据集。你知道吗

下面是一个示例,它显示了我在迭代5中想要的接口示例,例如:

enter image description here

哪种python库可以让我轻松做到这一点?你知道吗


Tags: the代码in示例fordatadatasetx1