Always set the `ChartView._viz` for each plot

log_linearized_curve_overlays
Tyler Goodlet 2023-02-08 16:31:18 -05:00
parent c57567ab0d
commit a7db6adc2e
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?