fix wrong offset when drawing symbol
This commit is contained in:
parent
19c9e5460c
commit
2a01c3848a
@ -781,7 +781,7 @@ class ScatterPlotItem(GraphicsObject):
|
|||||||
pts = pts[:,viewMask]
|
pts = pts[:,viewMask]
|
||||||
for i, rec in enumerate(data):
|
for i, rec in enumerate(data):
|
||||||
p.resetTransform()
|
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))
|
drawSymbol(p, *self.getSpotOpts(rec, scale))
|
||||||
else:
|
else:
|
||||||
if self.picture is None:
|
if self.picture is None:
|
||||||
|
Loading…
Reference in New Issue
Block a user