Always set the `ChartView._viz` for each plot

storage_cli
Tyler Goodlet 2023-02-08 16:31:18 -05:00
parent d19b663013
commit b446dba493
1 changed files with 4 additions and 0 deletions

View File

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