From e8e5f1525c09295d97f9d58043bda06937646db2 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Fri, 17 Sep 2021 16:30:56 -0400 Subject: [PATCH] Invert 'c' (connection) array In latest `pyqtgraph` it seems there's a discrepancy since `function.arrayToQPath()` was reworked and now we need to *not* connect the last point for each bar. --- piker/ui/_ohlc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piker/ui/_ohlc.py b/piker/ui/_ohlc.py index 7ae010fa..db6a343a 100644 --- a/piker/ui/_ohlc.py +++ b/piker/ui/_ohlc.py @@ -146,7 +146,7 @@ def path_arrays_from_ohlc( # specifies that the first edge is never connected to the # prior bars last edge thus providing a small "gap"/"space" # between bars determined by ``bar_gap``. - c[istart:istop] = (0, 1, 1, 1, 1, 1) + c[istart:istop] = (1, 1, 1, 1, 1, 0) return x, y, c