pyqt5使用pyqtgraph实现动态热力图

一、效果图

pyqt5使用pyqtgraph实现动态热力图-LMLPHP

二、流程

1、打开Designer创建一个UI界面
2、把UI转成py
3、创建一个main.py文件
4、在main文件中渲染画布、创建初始数据、画热力图、创建更新数据线程、绑定按钮触发事件

三、UI界面

其中h_map.py代码如下:

# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'h_map.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again.  Do not edit this file unless you know what you are doing.
12-03 05:23