def colorscale_to_colors(colorscale):
 color_list = []
 for item in colorscale:
  color_list.append(item[1])
 return color_list

def colorscale_to_colors ( colorscale ) : color_list = [ ] for item in colorscale : color_list . append ( item [ 1 ] ) return color_list
extracts the colors from colorscale as a list .