def make_linear_colorscale(colors):
 scale = (1.0 / (len(colors) - 1))
 return [[(i * scale), color] for (i, color) in enumerate(colors)]

def make_linear_colorscale ( colors ) : scale = ( 1.0 / ( len ( colors ) - 1 ) ) return [ [ ( i * scale ) , color ] for ( i , color ) in enumerate ( colors ) ]
makes a list of colors into a colorscale-acceptable form for documentation regarding to the form of the output .