From 61f3ce43b32cd6c562a073b315a87508c61d4732 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 16 Sep 2021 19:21:59 -0400 Subject: [PATCH] Toss in references step mode impl --- piker/ui/_curve.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/piker/ui/_curve.py b/piker/ui/_curve.py index 6b38420a..b0c10ef3 100644 --- a/piker/ui/_curve.py +++ b/piker/ui/_curve.py @@ -59,6 +59,19 @@ class FastAppendCurve(pg.PlotCurveItem): prepend_length = istart - x[0] append_length = x[-1] - istop + # TODO: step mode support + # if self.stepMode in ("center", True): ## support True for back-compat + # x2 = np.empty((len(x),2), dtype=x.dtype) + # x2[:] = x[:, np.newaxis] + + # ## If we have a fill level, add two extra points at either end + # x = x2.reshape(x2.size) + # y2 = np.empty((len(y)+2,2), dtype=y.dtype) + # y2[1:-1] = y[:,np.newaxis] + # y = y2.reshape(y2.size)[1:-1] + # y[0] = self.opts['fillLevel'] + # y[-1] = self.opts['fillLevel'] + if self.path is None or prepend_length: self.path = pg.functions.arrayToQPath( x[:-1],