百度快照入口seo站長工具 論壇
pyqt5使用pyqtgraph實(shí)現(xiàn)動(dòng)態(tài)熱力圖
一、效果圖
二、流程
1、打開Designer創(chuàng)建一個(gè)UI界面
2、把UI轉(zhuǎn)成py
3、創(chuàng)建一個(gè)main.py文件
4、在main文件中渲染畫布、創(chuàng)建初始數(shù)據(jù)、畫熱力圖、創(chuàng)建更新數(shù)據(jù)線程、綁定按鈕觸發(fā)事件
三、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.