From cfc36e7928304ca6efd5caa2b95056d3d5eb1710 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 26 Jan 2021 22:15:45 -0500 Subject: [PATCH] Snap y-cursor-label to min tick --- piker/ui/_graphics/_cursor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/piker/ui/_graphics/_cursor.py b/piker/ui/_graphics/_cursor.py index 791ffccc..c7587d78 100644 --- a/piker/ui/_graphics/_cursor.py +++ b/piker/ui/_graphics/_cursor.py @@ -367,7 +367,8 @@ class Cursor(pg.GraphicsObject): self.graphics[plot]['hl'].setY(iy) self.graphics[self.active_plot]['yl'].update_label( - abs_pos=pos, value=iy + abs_pos=plot.mapFromView(QPointF(ix, iy)), + value=iy ) # update all trackers