diff --git a/piker/ui/_chart.py b/piker/ui/_chart.py index f4a3c19e..74ef2891 100644 --- a/piker/ui/_chart.py +++ b/piker/ui/_chart.py @@ -1164,7 +1164,10 @@ class ChartPlotWidget(pg.PlotWidget): # f"begin: {begin}, end: {end}, extra: {extra}" # ) - a = self._arrays[name or self.name] + a = self._arrays.get(name or self.name) + if a is None: + return None + ifirst = a[0]['index'] bars = a[lbar - ifirst:rbar - ifirst + 1]