add graph legends
This commit is contained in:
parent
ea9b9a7a90
commit
eb6ab2a222
|
@ -26,7 +26,7 @@ tec = Client()
|
||||||
app = pg.mkQApp()
|
app = pg.mkQApp()
|
||||||
mw = QtGui.QMainWindow()
|
mw = QtGui.QMainWindow()
|
||||||
mw.setWindowTitle('Thermostat Control Panel')
|
mw.setWindowTitle('Thermostat Control Panel')
|
||||||
mw.resize(800,800)
|
mw.resize(1024,800)
|
||||||
cw = QtGui.QWidget()
|
cw = QtGui.QWidget()
|
||||||
mw.setCentralWidget(cw)
|
mw.setCentralWidget(cw)
|
||||||
l = QtGui.QVBoxLayout()
|
l = QtGui.QVBoxLayout()
|
||||||
|
@ -58,6 +58,16 @@ current0plot.addItem(Iset0curve)
|
||||||
current1plot.addItem(tecI1curve)
|
current1plot.addItem(tecI1curve)
|
||||||
current1plot.addItem(Iset1curve)
|
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
|
cnt = 0
|
||||||
time_stamp = np.zeros(rec_len)
|
time_stamp = np.zeros(rec_len)
|
||||||
|
|
Loading…
Reference in New Issue