diff --git a/piker/ui/_lines.py b/piker/ui/_lines.py index 697e889f..1e20958c 100644 --- a/piker/ui/_lines.py +++ b/piker/ui/_lines.py @@ -122,6 +122,9 @@ class LevelLine(pg.InfiniteLine): self._y_incr_mult = 1 / chart.linked.symbol.tick_size self._right_end_sc: float = 0 + # use px caching + self.setCacheMode(QtWidgets.QGraphicsItem.DeviceCoordinateCache) + def txt_offsets(self) -> tuple[int, int]: return 0, 0