From 3d5695f40a8dc81da58c9e768aa819e6cc09f832 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 30 Nov 2022 12:39:51 -0500 Subject: [PATCH] Explicitly enable chart widget yranging in display init --- piker/ui/_chart.py | 2 -- piker/ui/_display.py | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/piker/ui/_chart.py b/piker/ui/_chart.py index 61946873..aa068d74 100644 --- a/piker/ui/_chart.py +++ b/piker/ui/_chart.py @@ -923,8 +923,6 @@ class ChartPlotWidget(pg.PlotWidget): # show background grid self.showGrid(x=False, y=True, alpha=0.3) - # self.cv.enable_auto_yrange() - self.pi_overlay: PlotItemOverlay = PlotItemOverlay(self.plotItem) # indempotent startup flag for auto-yrange subsys diff --git a/piker/ui/_display.py b/piker/ui/_display.py index dcc767c8..0ca6477d 100644 --- a/piker/ui/_display.py +++ b/piker/ui/_display.py @@ -1438,5 +1438,8 @@ async def display_symbol_data( rt_linked.mode = mode rt_chart.default_view() + rt_chart.view.enable_auto_yrange() hist_chart.default_view() + hist_chart.view.enable_auto_yrange() + await trio.sleep_forever() # let the app run.. bby