Re: Auto color selection PIL

2006-10-01 Thread Scott David Daniels
Leif K-Brooks wrote: > Gabriel Genellina wrote: >> Try this. It first chooses 0, 1/2, then 1/4, 3/4, then */8... >> It's the best I could make if you don't know the number of colors >> beforehand. If you *do* know how many colors, your previous response >> is OK. I've no better suggestion than e

Re: Auto color selection PIL

2006-09-28 Thread Leif K-Brooks
Gabriel Genellina wrote: > Try this. It first chooses 0, 1/2, then 1/4, 3/4, then */8... > It's the best I could make if you don't know the number of colors > beforehand. If you *do* know how many colors, your previous response is OK. Um, that's the same thing my second suggestion does: >>> h

Re: Auto color selection PIL

2006-09-27 Thread Gabriel Genellina
At Wednesday 27/9/2006 20:43, Leif K-Brooks wrote: > 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 ther

Re: Auto color selection PIL

2006-09-27 Thread Leif K-Brooks
Xiaolei wrote: > 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? If you

Re: Auto color selection PIL

2006-09-27 Thread Leif K-Brooks
Xiaolei wrote: > 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? How abo

Auto color selection PIL

2006-09-27 Thread Xiaolei
Hi, 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