From a7db6adc2e2e5936f0158a6843496b123f1d6f28 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 8 Feb 2023 16:31:18 -0500 Subject: [PATCH] Always set the `ChartView._viz` for each plot --- piker/ui/_chart.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/piker/ui/_chart.py b/piker/ui/_chart.py index 96187bf2..d2190d42 100644 --- a/piker/ui/_chart.py +++ b/piker/ui/_chart.py @@ -1204,6 +1204,10 @@ class ChartPlotWidget(pg.PlotWidget): ) pi.viz = viz + # so that viewboxes are associated 1-to-1 with + # their parent plotitem + pi.vb._viz = viz + assert isinstance(viz.shm, ShmArray) # TODO: this probably needs its own method?