Correct symbols position
This commit is contained in:
parent
36979b67ea
commit
d22403f84f
@ -758,7 +758,7 @@ class ScatterPlotItem(GraphicsObject):
|
|||||||
for i in range(len(self.data)):
|
for i in range(len(self.data)):
|
||||||
rec = data[i]
|
rec = data[i]
|
||||||
p.resetTransform()
|
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))
|
drawSymbol(p, *self.getSpotOpts(rec, scale))
|
||||||
else:
|
else:
|
||||||
if self.picture is None:
|
if self.picture is None:
|
||||||
@ -769,7 +769,7 @@ class ScatterPlotItem(GraphicsObject):
|
|||||||
rec = rec.copy()
|
rec = rec.copy()
|
||||||
rec['size'] *= scale
|
rec['size'] *= scale
|
||||||
p2.resetTransform()
|
p2.resetTransform()
|
||||||
p2.translate(rec['x']+rec['width'], rec['y']+rec['width'])
|
p2.translate(rec['x'], rec['y'])
|
||||||
drawSymbol(p2, *self.getSpotOpts(rec, scale))
|
drawSymbol(p2, *self.getSpotOpts(rec, scale))
|
||||||
p2.end()
|
p2.end()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user