From 57d56c4791c525662da3fdffd86ac8a4a3e2e66d Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sun, 5 Mar 2023 21:22:55 -0500 Subject: [PATCH] Facepalm: set `Viz.ViewState.yrange` even on cache hits.. --- piker/ui/_dataviz.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/piker/ui/_dataviz.py b/piker/ui/_dataviz.py index 17701507..dd3ec411 100644 --- a/piker/ui/_dataviz.py +++ b/piker/ui/_dataviz.py @@ -249,7 +249,7 @@ class ViewState(Struct): in_view: np.ndarray | None = None -class Viz(Struct): # , frozen=True): +class Viz(Struct): ''' (Data) "Visualization" compound type which wraps a real-time shm array stream with displayed graphics (curves, charts) @@ -454,6 +454,7 @@ class Viz(Struct): # , frozen=True): f'{ixrng} -> {cached_result}' ) read_slc, mxmn = cached_result + self.vs.yrange = mxmn return ( ixrng, read_slc, @@ -1148,6 +1149,7 @@ class Viz(Struct): # , frozen=True): if do_ds: view.interact_graphics_cycle() + view.interact_graphics_cycle() def incr_info( self,