¡@

Home 

python Programming Glossary: num_colors

Create a color generator from given colormap in matplotlib

http://stackoverflow.com/questions/3016283/create-a-color-generator-from-given-colormap-in-matplotlib

more importantly difficult to remember from pylab import NUM_COLORS 22 mp cm.datad 'gist_rainbow' get_color matplotlib.colors.LinearSegmentedColormap.from_list.. mp colors 'r' 'b' N NUM_COLORS ... # Then in a for loop this_color get_color float i NUM_COLORS.. ... # Then in a for loop this_color get_color float i NUM_COLORS Moreover it does not cover the range of colours in the gist_rainbow..