Pyqtgraph的Color详解

Pyqtgraph的Color详解

我想理解,为什么

curve = pg.PlotCurveItem(pen=(i, self.winRollNeuronsTrace.nPlots * 1.3))

里边的i和self.winRollNeuronsTrace.nPlots * 1.3)是什么颜色;

然后看到下边的文档:

只要mkColor接收的参数,都可以变换成颜色;

image-20221013223654521

image-20221013223639651

1、mkColor中有一种形式参数就是接收一个元组();

2、int和hues;

3、那么int值有什么含义呢?可以从下边得到解释:

image-20221013223927788

我理解就是从一个色圈中不断选择想要的颜色;

请参考以下的连接:

https://pyqtgraph.readthedocs.io/en/latest/api_reference/functions.html#pyqtgraph.mkPen

https://pyqtgraph.readthedocs.io/en/latest/api_reference/functions.html#pyqtgraph.mkColor

https://pyqtgraph.readthedocs.io/en/latest/api_reference/functions.html#pyqtgraph.intColor

通过以上的三个连接,彻底搞懂pyqtgraph里边的颜色系统

posted @ 2022-10-13 22:47  bH1pJ  阅读(58)  评论(0编辑  收藏  举报