PyQt/PyQtGraph/README.md

36 lines
1.3 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# PyQtGraph
## 说明
正在汇总Demo中,Be continued
本章节预告,实际使用中的包`PyQtGraph`相关BUG以及解决方案如有精力会添加相应解决方案的作者
1. `PyQtGraph`右键保存图片功能异常,以及解决防范
2. 依据`PyQtGraph` examples例子的使用心得
3. `PyQtGraph`如何禁止左键,右键,滑轮事件功能
4. 使用`QScrollArea`后添加`pg.PlotWidget()`不能选择图片尺寸问题。
5. 多图共享轴Difficult
6. `pg.PlotWidget()`鼠标获取X轴坐标
## 目录
- [鼠标获取X轴坐标](#1鼠标获取X轴坐标)
- [禁止右键点击功能、鼠标滚轮,添加滚动条等功能](#2禁止右键点击功能、鼠标滚轮添加滚动条等功能)
## 1、鼠标获取X轴坐标
[运行 mouseFlow.py](mouseFlow.py)
![mouseFlow](ScreenShot/mouseFlow.gif)
## 2、禁止右键点击功能、鼠标滚轮添加滚动条等功能
[运行 graph1.py](graph1.py)
![mouseFlow](ScreenShot/function.gif)
## 3、不用修改源码重加载解决右键保存图片异常解决自定义坐标轴密集显示禁止鼠标事件
[加载 tools.py](tools.py)
## 4、QScrollArea添加和修改大小例子
[运行 testGraphAnalysis.py](testGraphAnalysis.py)
![testGraphAnalysis](ScreenShot/GraphAnalysis.gif)