Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在制作一个时间序列监控程序。
我想从 x 轴范围的一半开始更改绘图的颜色。对于 100 x 20 绘图小部件,我想将最后 50 个数据点更改为另一种颜色。
每当传递每 xx 项数据时,如何绘制自定义垂直网格?
对于 (1),您必须将数据分成两行,并分别分配颜色。PyQtGraph 还不支持每行多种颜色。
对于 (2),考虑使用pg.InfiniteLineor pg.VTickGroup。
pg.InfiniteLine
pg.VTickGroup