fixed the Pen None property.
- https://groups.google.com/forum/#!topic/pyqtgraph/t6cl1CevlB0 Signed-off-by: Nicholas Tan Jerome <nicholas.jerome@kit.edu>
This commit is contained in:
parent
1aeb197b03
commit
6cc0f5e33d
|
@ -357,10 +357,6 @@ class ScatterPlotItem(GraphicsObject):
|
||||||
for i in range(len(spots)):
|
for i in range(len(spots)):
|
||||||
spot = spots[i]
|
spot = spots[i]
|
||||||
for k in spot:
|
for k in spot:
|
||||||
#if k == 'pen':
|
|
||||||
#newData[k] = fn.mkPen(spot[k])
|
|
||||||
#elif k == 'brush':
|
|
||||||
#newData[k] = fn.mkBrush(spot[k])
|
|
||||||
if k == 'pos':
|
if k == 'pos':
|
||||||
pos = spot[k]
|
pos = spot[k]
|
||||||
if isinstance(pos, QtCore.QPointF):
|
if isinstance(pos, QtCore.QPointF):
|
||||||
|
@ -369,10 +365,10 @@ class ScatterPlotItem(GraphicsObject):
|
||||||
x,y = pos[0], pos[1]
|
x,y = pos[0], pos[1]
|
||||||
newData[i]['x'] = x
|
newData[i]['x'] = x
|
||||||
newData[i]['y'] = y
|
newData[i]['y'] = y
|
||||||
elif k in ['x', 'y', 'size', 'symbol', 'pen', 'brush', 'data']:
|
elif k == 'pen':
|
||||||
|
newData[i][k] = fn.mkPen(spot[k])
|
||||||
|
elif k in ['x', 'y', 'size', 'symbol', 'brush', 'data']:
|
||||||
newData[i][k] = spot[k]
|
newData[i][k] = spot[k]
|
||||||
#elif k == 'data':
|
|
||||||
#self.pointData[i] = spot[k]
|
|
||||||
else:
|
else:
|
||||||
raise Exception("Unknown spot parameter: %s" % k)
|
raise Exception("Unknown spot parameter: %s" % k)
|
||||||
elif 'y' in kargs:
|
elif 'y' in kargs:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user