Snap y-cursor-label to min tick

basic_orders
Tyler Goodlet 2021-01-26 22:15:45 -05:00
parent 708086cbcb
commit cfc36e7928
1 changed files with 2 additions and 1 deletions

View File

@ -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