From dd7e1bbbdd544c4bde9dd0d6ab471f292c09eee3 Mon Sep 17 00:00:00 2001 From: linuswck Date: Fri, 18 Oct 2024 13:26:41 +0800 Subject: [PATCH] gui: Adjust y_axis limit range of graphs --- pykirdy/kirdy_qt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pykirdy/kirdy_qt.py b/pykirdy/kirdy_qt.py index 59435e0..4d72943 100644 --- a/pykirdy/kirdy_qt.py +++ b/pykirdy/kirdy_qt.py @@ -195,6 +195,7 @@ class Graphs: ld_i_set_axis.showLabel() ld_i_set_graph.setAxisItems({'left': ld_i_set_axis}) ld_i_set_graph.addItem(self._ld_i_set_plot) + ld_i_set_graph.y_range_controller = LiveAxisRange(fixed_range=[0.0, 0.4]) self.ld_i_set_connector = DataConnector(self._ld_i_set_plot, max_points=self.max_samples) self.connectors += [self.ld_i_set_connector] @@ -218,7 +219,6 @@ class Graphs: tec_i_axis.showLabel() tec_i_graph.setAxisItems({'left': tec_i_axis}) tec_i_graph.addLegend(brush=(50, 50, 200, 150)) - tec_i_graph.y_range_controller = LiveAxisRange(fixed_range=[-1.0, 1.0]) tec_i_graph.addItem(self._tec_i_target_plot) tec_i_graph.addItem(self._tec_i_measure_plot) self.tec_i_target_connector = DataConnector(self._tec_i_target_plot, max_points=self.max_samples)