'Set the size(s) used to draw each spot.
If a list or array is provided, then the size for each spot will be set separately.
Otherwise, the argument will be used as the default size for
all spots which do not have a size explicitly set.'

def setSize(self, size, update=True, dataSet=None, mask=None):

    if (dataSet is None):
        dataSet = self.data
    if (isinstance(size, np.ndarray) or isinstance(size, list)):
        sizes = size
        if (mask is not None):
            sizes = sizes[mask]
        if (len(sizes) != len(dataSet)):
            raise Exception(('Number    of    sizes    does    not    match    number    of    points    (%d    !=    %d)' % (len(sizes), len(dataSet))))
        dataSet['size'] = sizes
    else:
        self.opts['size'] = size
        self._spotPixmap = None
    dataSet['sourceRect'] = None
    if update:
        self.updateSpots(dataSet)
