forked from M-Labs/thermostat
Legend names & order
This commit is contained in:
parent
4635e71ebf
commit
37c0332c31
|
@ -164,8 +164,8 @@ class ChannelGraphs:
|
|||
self._i_widget = i_widget
|
||||
|
||||
self._t_plot = LiveLinePlot()
|
||||
self._i_plot = LiveLinePlot(name='Feedback')
|
||||
self._iset_plot = LiveLinePlot(name='Setpoint', pen=pg.mkPen('r'))
|
||||
self._i_plot = LiveLinePlot(name='Measured')
|
||||
self._iset_plot = LiveLinePlot(name='Set', pen=pg.mkPen('r'))
|
||||
|
||||
self.t_line = self._t_widget.getPlotItem().addLine(label='{value} °C')
|
||||
self.t_line.setVisible(False)
|
||||
|
@ -190,8 +190,8 @@ class ChannelGraphs:
|
|||
i_widget.addLegend(brush=(50, 50, 200, 150))
|
||||
|
||||
t_widget.addItem(self._t_plot)
|
||||
i_widget.addItem(self._i_plot)
|
||||
i_widget.addItem(self._iset_plot)
|
||||
i_widget.addItem(self._i_plot)
|
||||
|
||||
self.t_connector = DataConnector(self._t_plot, max_points=self.DEFAULT_MAX_SAMPLES)
|
||||
self.i_connector = DataConnector(self._i_plot, max_points=self.DEFAULT_MAX_SAMPLES)
|
||||
|
|
Loading…
Reference in New Issue