From da5dea9f992958f9a48360b1196a08ef895ee9a0 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 9 Jun 2022 16:38:04 -0400 Subject: [PATCH] Drop cache reset from `Curve.draw_last_datum()` --- piker/ui/_curve.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/piker/ui/_curve.py b/piker/ui/_curve.py index ac967bf7b..ac5d12cae 100644 --- a/piker/ui/_curve.py +++ b/piker/ui/_curve.py @@ -379,17 +379,17 @@ def draw_last_datum( ) -> None: # default line draw last call - with self.reset_cache(): - x = render_data['index'] - y = render_data[array_key] - - # draw the "current" step graphic segment so it - # lines up with the "middle" of the current - # (OHLC) sample. - self._last_line = QLineF( - x[-2], y[-2], - x[-1], y[-1], - ) + # with self.reset_cache(): + x = render_data['index'] + y = render_data[array_key] + + # draw the "current" step graphic segment so it + # lines up with the "middle" of the current + # (OHLC) sample. + self._last_line = QLineF( + x[-2], y[-2], + x[-1], y[-1], + ) return x, y