colorbrewer colormaps

can anyone explain this format to me?

    > _cool_data = {'red': ((0., 0., 0.), (1.0, 1.0, 1.0)),
    > 'green': ((0., 1., 1.), (1.0, 0., 0.)), 'blue': ((0., 1.,
    > 1.), (1.0, 1., 1.))}

Take a look at the help for the matplotlib.colors module at
http://matplotlib.sourceforge.net/matplotlib.colors.html, in
particular

  http://matplotlib.sourceforge.net/matplotlib.colors.html#LinearSegmentedColormap
  http://matplotlib.sourceforge.net/matplotlib.colors.html#-makeMappingArray

JDH