Commit d22403f8 authored by Guillaume Poulin's avatar Guillaume Poulin
Browse files

Correct symbols position

parent 36979b67
......@@ -758,7 +758,7 @@ class ScatterPlotItem(GraphicsObject):
for i in range(len(self.data)):
rec = data[i]
p.resetTransform()
p.translate(pts[0,i], pts[1,i])
p.translate(pts[0,i] + rec['width'], pts[1,i] + rec['width'])
drawSymbol(p, *self.getSpotOpts(rec, scale))
else:
if self.picture is None:
......@@ -769,7 +769,7 @@ class ScatterPlotItem(GraphicsObject):
rec = rec.copy()
rec['size'] *= scale
p2.resetTransform()
p2.translate(rec['x']+rec['width'], rec['y']+rec['width'])
p2.translate(rec['x'], rec['y'])
drawSymbol(p2, *self.getSpotOpts(rec, scale))
p2.end()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment