From 728bce38b6b5633caf08154f952272d9dd4d1505 Mon Sep 17 00:00:00 2001 From: atse Date: Fri, 28 Jul 2023 17:46:26 +0800 Subject: [PATCH] Add crosshair for better read of values --- pytec/tec_qt.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pytec/tec_qt.py b/pytec/tec_qt.py index 16f6b7d..08dc007 100644 --- a/pytec/tec_qt.py +++ b/pytec/tec_qt.py @@ -227,6 +227,8 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow): time_axis.showLabel() graph.setAxisItems({'bottom': time_axis}) + graph.add_crosshair(pg.mkPen(color='red', width=1), {'color': 'green'}) + for graph in self.ch0_t_graph, self.ch1_t_graph: temperature_axis = LiveAxis('left', text="Temperature", units="°C") temperature_axis.showLabel()