From 4d332328c02b248e695bc790a1655c52f4338de0 Mon Sep 17 00:00:00 2001 From: linuswck Date: Tue, 22 Oct 2024 17:58:07 +0800 Subject: [PATCH] gui: Limit min PD Mon Pwr y axis range to 0-100uW --- pykirdy/kirdy_qt.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pykirdy/kirdy_qt.py b/pykirdy/kirdy_qt.py index f423a46..2eb3405 100644 --- a/pykirdy/kirdy_qt.py +++ b/pykirdy/kirdy_qt.py @@ -201,6 +201,8 @@ class Graphs: pd_mon_pwr_axis = LiveAxis('left', text="Power", units="W") pd_mon_pwr_axis.showLabel() + + pd_mon_pwr_graph.y_range_controller = LiveAxisRange(min_y_range_span=[0.0, 100 / 1000 / 1000]) pd_mon_pwr_graph.setAxisItems({'left': pd_mon_pwr_axis}) pd_mon_pwr_graph.addItem(self._pd_mon_pwr_plot) self.pd_mon_pwr_connector = DataConnector(self._pd_mon_pwr_plot, plot_rate=10.0, update_rate=10.0, max_points=self.max_samples)