What’s the quickest way to get an array of colors in python? Something I can index and pass to as the “color=” argument plotting in pylab.
The best I can come up with is:
colors = [(random(),random(),random()) for i in range(10)]
but a solution that can generate well-spaced colors (interpolated?) would be preferable.
Result Example:
['#37AB65', '#3DF735', '#AD6D70', '#EC2504', '#8C0B90', '#C0E4FF', '#27B502', '#7C60A8', '#CF95D7', '#145JKH']ps: thanks to @Inerdia