def create_colors(n_colors):
 colors_hue = np.arange(n_colors)
 colors_hue = as_floatX(colors_hue)
 colors_hue *= (1.0 / n_colors)
 colors_hsv = np.ones((n_colors, 3))
 colors_hsv[:, 2] *= 0.75
 colors_hsv[:, 0] = colors_hue
 colors_hsv = colors_hsv.reshape(((1,) + colors_hsv.shape))
 colors_rgb = matplotlib.colors.hsv_to_rgb(colors_hsv)
 colors_rgb = colors_rgb[0]
 return colors_rgb

def create_colors ( n_colors ) : colors_hue = np . arange ( n_colors ) colors_hue = as_floatX ( colors_hue ) colors_hue *= ( 1.0 / n_colors ) colors_hsv = np . ones ( ( n_colors , 3 ) ) colors_hsv [ : , 2 ] *= 0.75 colors_hsv [ : , 0 ] = colors_hue colors_hsv = colors_hsv . reshape ( ( ( 1 , ) + colors_hsv . shape ) ) colors_rgb = matplotlib . colors . hsv_to_rgb ( colors_hsv ) colors_rgb = colors_rgb [ 0 ] return colors_rgb
create an array of n_colors parameters n_colors : int the number of colors to create returns colors_rgb : np .