[rrd-users] Re: color tones

Erik de Mare erik at oezie.org
Fri May 6 17:20:14 MEST 2005


I tried to make that also, what I got was this 
http://haas.oezie.org/rrd/haas-day-proces.png, from green to red. the 
problem now is that I can't graph negative numbers. her is a piece of 
perl code I made:

  @color = ('00FF00','11FF00','22FF00','33FF00','44FF00','55FF00','66FF00','77FF00','88FF00','99FF00','AAFF00','BBFF00',
            'CCFF00','DDFF00','EEFF00','FFFF00','FFEE00','FFDD00','FFCC00','FFBB00','FFAA00','FF9900','FF8800',
                                    'FF7700','FF6600','FF5500','FF4400','FF3300','FF2200','FF1100','FF0000');

  $letter = 'a';
  for($i=0;$i<@color;$i++){
    $control = ($i+1)*($Size/@color);
    $fac = $Size/@color;
    $value = $i*($Size/@color);
#   print "CDEF:$letter=totaal,$control,GE,$fac,totaal,$value,-,0,LE,UNKN,totaal,$value,-,IF,IF\n";
    push(@data,"CDEF:$letter=totaal,$control,GE,$fac,totaal,$value,-,0,LE,UNKN,totaal,$value,-,IF,IF");
    $letter++;
  }
  $letter = 'a';
  push(@data,"AREA:$letter#$color[0]");
  $letter++;
  for($i=1;$i<@color;$i++){
    push(@data,"STACK:$letter#$color[$i]");
    $letter++;
  }

where total is the DEF that you are graphing.

push(@data,"DEF:totaal=$file:hrStorageUsed:AVERAGE");

maybe this will help you as a start.

mvg

Erik de Mare

Alexander Krogloth wrote:

>hello,
>
>i want to know how to make rrdgraphs with these good-looking color tones
>--> http://people.ee.ethz.ch/~oetiker/webtools/rrdtool-1.0.x/gallery/beaumont-01.html
>
>i don't know how to set up the graph that there isn't a line where the
>color changes from red to yellow but the change the color slowly ....
>
>thx for help
>
>
>--alex
>
>  
>

--
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://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the rrd-users mailing list