python下如何pyqtgraph高速画图

 时间:2024-10-12 14:17:23

1、安装PyQtGraph:打开终端,使用命令pip installPyQtGraph

python下如何pyqtgraph高速画图

2、安装PySide: 在终端使用命令pip install PySide安装

3、PyQtGraph使得从命令行可视化数据变得非常容易。注意:import pyqtgraph as pgpg.plot(data像粜杵泳) # data can be a list of values or a numpy array

python下如何pyqtgraph高速画图

4、运行官方小示例:import pyqtgraph.examplespyqtgraph.examples.run()运行后会弹出如图窗口

python下如何pyqtgraph高速画图

5、在窗口的Qt Library选项,选择PySide,在Graphics System选项,选择native

python下如何pyqtgraph高速画图

6、点击run example按钮,弹出示例窗口运行

python下如何pyqtgraph高速画图

7、使用代码:pg.setConfigOption('background', 'w媪青怍牙')pg.setConfigOption('foreground', 'k')修改示例背景

python下如何pyqtgraph高速画图python下如何pyqtgraph高速画图
  • 七种最简单的自制补水面膜
  • 吃完饭肚子咕噜咕噜响是怎么回事
  • 2018DNF满级男圣骑士通用刷图如何加点
  • 微信读书在哪取消订阅
  • 小叶紫檀树苗价格
  • 热门搜索
    眼皮上长疙瘩怎么回事 兴高采烈的近义词 夜尿多是怎么回事 怎么组装电脑 华夏保险公司怎么样 苹果手机邮件怎么设置 陌生的近义词 南昌市博物馆 自发粉怎么用 慢条斯理的近义词