From 0e8486a66741bbb8231e0cb510c0fa5e77272a12 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 4 Apr 2022 10:14:46 -0400 Subject: [PATCH] Fix view range array to include most recent (facepalm) --- piker/ui/_chart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piker/ui/_chart.py b/piker/ui/_chart.py index d2bfb5be..378fb774 100644 --- a/piker/ui/_chart.py +++ b/piker/ui/_chart.py @@ -1221,7 +1221,7 @@ class ChartPlotWidget(pg.PlotWidget): # TODO: we could do it this way as well no? # to_draw = array[lbar - ifirst:(rbar - ifirst) + 1] - in_view = array[lbar_i: rbar_i] + in_view = array[lbar_i: rbar_i + 1] if not in_view.size: return graphics