1
0
forked from M-Labs/kirdy

gui: Limit min PD Mon Pwr y axis range to 0-100uW

This commit is contained in:
linuswck 2024-10-22 17:58:07 +08:00
parent edb8099a26
commit 4d332328c0

View File

@ -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)