Add crosshair for better read of values

This commit is contained in:
atse 2023-07-28 17:46:26 +08:00
parent 5c081b0547
commit 728bce38b6
1 changed files with 2 additions and 0 deletions

View File

@ -227,6 +227,8 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
time_axis.showLabel() time_axis.showLabel()
graph.setAxisItems({'bottom': time_axis}) 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: for graph in self.ch0_t_graph, self.ch1_t_graph:
temperature_axis = LiveAxis('left', text="Temperature", units="°C") temperature_axis = LiveAxis('left', text="Temperature", units="°C")
temperature_axis.showLabel() temperature_axis.showLabel()