From d22403f84f9c53547d74a3bfdd74973209a2e91e Mon Sep 17 00:00:00 2001 From: Guillaume Poulin Date: Tue, 24 Sep 2013 17:13:13 +0800 Subject: [PATCH] Correct symbols position --- pyqtgraph/graphicsItems/ScatterPlotItem.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyqtgraph/graphicsItems/ScatterPlotItem.py b/pyqtgraph/graphicsItems/ScatterPlotItem.py index 2d76b104..1eedf0e7 100644 --- a/pyqtgraph/graphicsItems/ScatterPlotItem.py +++ b/pyqtgraph/graphicsItems/ScatterPlotItem.py @@ -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()