forked from M-Labs/thermostat
Enable axis linking functionality
This commit is contained in:
parent
7149fb6d85
commit
c1ae69f218
|
@ -442,6 +442,9 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
|
||||||
|
|
||||||
graph.add_crosshair(pg.mkPen(color='red', width=1), {'color': 'green'})
|
graph.add_crosshair(pg.mkPen(color='red', width=1), {'color': 'green'})
|
||||||
|
|
||||||
|
# Enable linking of axes in the graph widget's context menu
|
||||||
|
graph.register(graph.getPlotItem().titleLabel.text) # Slight hack getting the title
|
||||||
|
|
||||||
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()
|
||||||
|
|
Loading…
Reference in New Issue