From 71eef1b7fd617c31362422d1947a59d579a555cb Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 21 Jul 2021 20:00:11 -0400 Subject: [PATCH] Add `.view` property, throttle to 50Hz by default --- piker/ui/_chart.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/piker/ui/_chart.py b/piker/ui/_chart.py index f1ade0f4..0e967128 100644 --- a/piker/ui/_chart.py +++ b/piker/ui/_chart.py @@ -535,6 +535,10 @@ class ChartPlotWidget(pg.PlotWidget): # for when the splitter(s) are resized self._vb.sigResized.connect(self._set_yrange) + @property + def view(self) -> ChartView: + return self._vb + def focus(self) -> None: # self.setFocus() self._vb.setFocus() @@ -924,7 +928,7 @@ class ChartPlotWidget(pg.PlotWidget): self.scene().leaveEvent(ev) -_clear_throttle_rate: int = 60 # Hz +_clear_throttle_rate: int = 50 # Hz _book_throttle_rate: int = 16 # Hz