From 74c215d5b2cdff82d71a047f2be3d1cd61042d87 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 8 Feb 2023 17:23:36 -0500 Subject: [PATCH] Lel, always meant to no-cache the step curve.. --- piker/ui/_curve.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/piker/ui/_curve.py b/piker/ui/_curve.py index c9ebebcd..358d4844 100644 --- a/piker/ui/_curve.py +++ b/piker/ui/_curve.py @@ -407,9 +407,6 @@ class Curve(FlowGraphic): # (via it's max / min) even when highly zoomed out. class FlattenedOHLC(Curve): - # avoids strange dragging/smearing artifacts when panning.. - cache_mode: int = QGraphicsItem.NoCache - def draw_last_datum( self, path: QPainterPath, @@ -435,6 +432,11 @@ class FlattenedOHLC(Curve): class StepCurve(Curve): + # avoids strange dragging/smearing artifacts when panning + # as well as mouse over artefacts when the vlm chart series + # is "shorter" then some overlay.. + cache_mode: int = QGraphicsItem.NoCache + def declare_paintables( self, ) -> None: