Auto color selection PIL
propheci at gmail.com
Wed Sep 27 22:29:56 CEST 2006
I'm trying to plot some points in an image. Each point has an
associating type and I'd like to have different colors (preferrably of
high contrast) for different types. The number of types in the data
file is unknown a priori. Is there a way to do this at runtime?
The "solution" I have so far has been to manually create a list of
10-20 contrasting colors and just go off that list at runtime. This
works most of the time since the number of types is usually less than
10. But I'd like a general solution.
More information about the Python-list