更新时间:2023-02-26 17:42:44
PyQtGraph在这里是一个不错的选择,实时绘制125个样本/秒应该没问题.您可以使用多种方法来绘制实时数据,滚动数据,并且PyQtGraph中实际上有一个很好的示例文件,该文件仅显示以下内容:
PyQtGraph is a pretty good choice here and it should be no problem to plots 125 samples/second in real time. There are several approaches you could use for plotting real-time, scrolling data and there actually is a good example file in PyQtGraph showing just that: https://github.com/pyqtgraph/pyqtgraph/blob/develop/examples/scrollingPlots.py
您可以通过在安装PyQtGraph之后在Python解释器中运行此示例来运行示例:
You can run the example by running this in your Python interpreter after installing PyQtGraph:
import pyqtgraph.examples
pyqtgraph.examples.run()
,然后选择滚动图"示例.
and selecting the "Scrolling plots" example.