forked from M-Labs/thermostat
add graph legends
This commit is contained in:
parent
fe28ac98e5
commit
61a8af468a
@ -26,7 +26,7 @@ tec = Client()
|
||||
app = pg.mkQApp()
|
||||
mw = QtGui.QMainWindow()
|
||||
mw.setWindowTitle('Thermostat Control Panel')
|
||||
mw.resize(800,800)
|
||||
mw.resize(1024,800)
|
||||
cw = QtGui.QWidget()
|
||||
mw.setCentralWidget(cw)
|
||||
l = QtGui.QVBoxLayout()
|
||||
@ -58,6 +58,16 @@ current0plot.addItem(Iset0curve)
|
||||
current1plot.addItem(tecI1curve)
|
||||
current1plot.addItem(Iset1curve)
|
||||
|
||||
temp0legend = temp0plot.getPlotItem().addLegend(brush=(50,50,200,150))
|
||||
temp0legend.addItem(temp0curve, 'feedback')
|
||||
temp1legend = temp1plot.getPlotItem().addLegend(brush=(50,50,200,150))
|
||||
temp1legend.addItem(temp0curve, 'feedback')
|
||||
current0legend = current0plot.getPlotItem().addLegend(brush=(50,50,200,150))
|
||||
current0legend.addItem(tecI0curve, 'feedback')
|
||||
current0legend.addItem(Iset0curve, 'setpoint')
|
||||
current1legend = current1plot.getPlotItem().addLegend(brush=(50,50,200,150))
|
||||
current1legend.addItem(tecI1curve, 'feedback')
|
||||
current1legend.addItem(Iset1curve, 'setpoint')
|
||||
|
||||
cnt = 0
|
||||
time_stamp = np.zeros(rec_len)
|
||||
|
Loading…
Reference in New Issue
Block a user