[rrd-users] Re: Good Colours to use on graphs?

David Landgren david at landgren.net
Tue Mar 22 09:33:17 MET 2005


Serge Maandag wrote:
>>I'm struggling a bit with something so simple and stupid, but 
>>something that is integral to the whole idea... what colours to use?
>>
>>I have a total of 20 DS's, and sometimes will want all of 
>>these to be displayed on a single graph, however, getting the 
>>definition between the colours is quite akward, so I'm 
>>looking for recommendations of colours to be used that are 
>>very different to each other so I can get a 'clear' graph!
> 
> 
> 
> Good question. I once struggled with this too.
> The way I solved it was to convert rgb to hsv. That way you get
> A color wheel. You can then pick colors at even spaced angles
> From the wheel. For instance if you need 6 colors, take one
> With h=0, one with h=60, one with h=120 and so on.
> 
> This will not give you perfect results. You may also want to
> Change S and V with each color. Let me know if you found a good
> Algorithm for that :) 

Just to follow up on this thread, I ran across the following Perl code 
to do something that appears to be what the OP was looking for:

http://www.perlmonks.org/index.pl?node_id=441359

Hope this helps,
David

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list