Commit 7356126c authored by Nicholas Tan Jerome's avatar Nicholas Tan Jerome
Browse files

added "mask" key check on setPen as well

Signed-off-by: default avatarNicholas Tan Jerome <>
parent 884df493
......@@ -421,7 +421,7 @@ class ScatterPlotItem(GraphicsObject):
if len(args) == 1 and (isinstance(args[0], np.ndarray) or isinstance(args[0], list)):
pens = args[0]
if kargs['mask'] is not None:
if if 'mask' in kargs and kargs['mask'] is not None:
pens = pens[kargs['mask']]
if len(pens) != len(dataSet):
raise Exception("Number of pens does not match number of points (%d != %d)" % (len(pens), len(dataSet)))
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