From e258654c862a93dfc7bcbeace9bb617e1d1a2ad7 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 17 May 2022 19:18:31 -0400 Subject: [PATCH] Just drop "line dot" updates for now.. --- piker/ui/_cursor.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/piker/ui/_cursor.py b/piker/ui/_cursor.py index fe5fc100..606ff3f2 100644 --- a/piker/ui/_cursor.py +++ b/piker/ui/_cursor.py @@ -108,20 +108,20 @@ class LineDot(pg.CurvePoint): # TODO: get rid of this ``.getData()`` and # make a more pythonic api to retreive backing # numpy arrays... - (x, y) = self.curve().getData() - index = self.property('index') - # first = self._plot._arrays['ohlc'][0]['index'] - # first = x[0] - # i = index - first - if index: - i = round(index - x[0]) - if i > 0 and i < len(y): - newPos = (index, y[i]) - QtWidgets.QGraphicsItem.setPos( - self, - *newPos, - ) - return True + # (x, y) = self.curve().getData() + # index = self.property('index') + # # first = self._plot._arrays['ohlc'][0]['index'] + # # first = x[0] + # # i = index - first + # if index: + # i = round(index - x[0]) + # if i > 0 and i < len(y): + # newPos = (index, y[i]) + # QtWidgets.QGraphicsItem.setPos( + # self, + # *newPos, + # ) + # return True return False