'Return a ColorMap object representing the current state of the editor.'

def colorMap(self):

    if (self.colorMode == 'hsv'):
        raise NotImplementedError('hsv    colormaps    not    yet    supported')
    pos = []
    color = []
    for (t, x) in self.listTicks():
        pos.append(x)
        c = t.color
        color.append([c.red(), c.green(), c.blue(), c.alpha()])
    return ColorMap(np.array(pos), np.array(color, dtype=np.ubyte))
