From 37c0332c31728d18b96e01529bd79e1e99e9fe4d Mon Sep 17 00:00:00 2001 From: atse Date: Thu, 31 Aug 2023 13:25:39 +0800 Subject: [PATCH] Legend names & order --- pytec/tec_qt.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pytec/tec_qt.py b/pytec/tec_qt.py index e3b1da8..49dae7a 100644 --- a/pytec/tec_qt.py +++ b/pytec/tec_qt.py @@ -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)