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)):
|
||||
spot = spots[i]
|
||||
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':
|
||||
pos = spot[k]
|
||||
if isinstance(pos, QtCore.QPointF):
|
||||
|
@ -369,10 +365,10 @@ class ScatterPlotItem(GraphicsObject):
|
|||
x,y = pos[0], pos[1]
|
||||
newData[i]['x'] = x
|
||||
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]
|
||||
#elif k == 'data':
|
||||
#self.pointData[i] = spot[k]
|
||||
else:
|
||||
raise Exception("Unknown spot parameter: %s" % k)
|
||||
elif 'y' in kargs:
|
||||
|
|
Loading…
Reference in New Issue
Block a user