code: def get_cmap(self):
          
  
          # now generate the colormap from the ordered list
          r = []
          g = []
          b = []
          for p in self._colorpoint_list:
              r.append((p[0], p[1][0]*1.0, p[2][0]*1.0))
              g.append((p[0], p[1][1]*1.0, p[2][1]*1.0))
              b.append((p[0], p[1][2]*1.0, p[2][2]*1.0))
  
          # store the formatted dictionary
          c = {'red':r, 'green':g, 'blue':b}
  
          # now set the dang thing
          return _mpl.colors.LinearSegmentedColormap('custom', c)
docs: Generates a pylab cmap object from the colorpoint data.