[rrd-users] Re: color tones

This is a discussion on [rrd-users] Re: color tones within the RRD Users forums, part of the Networking and Network Related category; I tried to make that also, what I got was this http://haas.oezie.org/rrd/haas-day-proces.png, ...


Go Back   Usenet Forums > Networking and Network Related > RRD Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-06-2005
Erik de Mare
 
Posts: n/a
Default [rrd-users] Re: color tones

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','55F F00','66FF00','77FF00','88FF00','99FF00','AAFF00', 'BBFF00',
'CCFF00','DDFF00','EEFF00','FFFF00','FFEE00','FFDD 00','FFCC00','FFBB00','FFAA00','FF9900','FF8800',
'FF7700','FF6600','FF5500','FF4400','FF3300','FF22 00','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,$valu e,-,0,LE,UNKN,totaal,$value,-,IF,IF\n";
push(@data,"CDEF:$letter=totaal,$control,GE,$fac,t otaal,$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/we...aumont-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@list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request@list.ee.ethz.ch?subject=help
Archive http://lists.ee.ethz.ch/rrd-users
WebAdmin http://lists.ee.ethz.ch/lsg2.cgi

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:03 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0