'Parameters
name : str
The name of the colormap.
N : int
The number of rgb quantization levels.'

def __init__(self, name, N=256):

    self.name = name
    self.N = int(N)
    self._rgba_bad = (0.0, 0.0, 0.0, 0.0)
    self._rgba_under = None
    self._rgba_over = None
    self._i_under = self.N
    self._i_over = (self.N + 1)
    self._i_bad = (self.N + 2)
    self._isinit = False
    self.colorbar_extend = False
