def create_colors(n_colors):
    # Create the list of color hue
    colors_hue = np.arange(n_colors)
    colors_hue = as_floatX(colors_hue)
    colors_hue *= 1./n_colors

    # Set the color in HSV format
    colors_hsv = np.ones((n_colors, 3))
    colors_hsv[:, 2] *= .75
    colors_hsv[:, 0] = colors_hue

    # Put in a matplotlib-friendly format
    colors_hsv = colors_hsv.reshape((1, )+colors_hsv.shape)
    # Convert to RGB
    colors_rgb = matplotlib.colors.hsv_to_rgb(colors_hsv)
    colors_rgb = colors_rgb[0]

    return colors_rgb
called to inform about synced peers
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/train_extensions/plots.py/create_colors--crossover with--dataset/ETHPy150Open HydraChain/hydrachain/hydrachain/consensus/synchronizer.py/Synchronizer.on_proposal