fix wrong offset when drawing symbol

This commit is contained in:
Paul Müller 2019-11-25 14:14:15 +01:00 committed by GitHub
parent 19c9e5460c
commit 2a01c3848a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -781,7 +781,7 @@ class ScatterPlotItem(GraphicsObject):
pts = pts[:,viewMask]
for i, rec in enumerate(data):
p.resetTransform()
p.translate(pts[0,i] + rec['width'], pts[1,i] + rec['width']/2)
p.translate(pts[0,i] + rec['width']/2, pts[1,i] + rec['width']/2)
drawSymbol(p, *self.getSpotOpts(rec, scale))
else:
if self.picture is None: