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

Serge Maandag serge.maandag at staff.zeelandnet.nl
Thu Mar 10 18:53:02 MET 2005

> 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 :) 

Here's example code for rgb -> hsv and hsv -> rgb code conversion.
Google will give you lots more.

To see what the hsv colour wheel looks like, check:


Op de inhoud van dit e-mailbericht en de daaraan gehechte bijlagen is de inhoud van de volgende disclaimer van toepassing: http://www.zeelandnet.nl/disclaimer.php

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