Hello, Anyone have any guesses why my graph has all that white space? It should be a continuous color on the background. (see the "wind speed/direction" graph)
I may not have the cdefs set up correctly to draw the infinity AREA colors for the wind direction, with trial and error I copied some cdefs someone else posted for the 'smokeping' type graphs.
At first I figured it was because there wasn't any data in the rrd, I don't think that's the case, see the other graph that is just graphing wind direction doesn't have the same look.... both graphs get the wind direction data from the same rrd.
Something else to further confuse me... If I zoom in on that graph the white lines don't show up.
I'm sure I just don't understand the cdef's but if anyone has ideas please let me know. Thanks!
Oh here's the rrdtool graph command so you can see the cdefs...
/usr/local/rrdtool-1.2.12/bin/rrdtool graph - \
--imgformat=PNG \
--start=1147462189 \
--end=1147548589 \
--title="Wind Speed / Direction" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
COMMENT:"From 2006/05/12 14\:29\:49 To 2006/05/13 14\:29\:49\c" \
COMMENT:" \n" \
--vertical-label="mph" \
--slope-mode \
DEF:a="/var/www/htdocs/cacti/rra/wind_dir_69.rrd":wind_dir:AVERAGE \
DEF:b="/var/www/htdocs/cacti/rra/wind_dir_69.rrd":wind_dir:AVERAGE \
DEF:c="/var/www/htdocs/cacti/rra/wind_dir_69.rrd":wind_dir:AVERAGE \
DEF:d="/var/www/htdocs/cacti/rra/wind_dir_69.rrd":wind_dir:AVERAGE \
DEF:e="/var/www/htdocs/cacti/rra/wind_dir_69.rrd":wind_dir:AVERAGE \
DEF:f="/var/www/htdocs/cacti/rra/wind_dir_69.rrd":wind_dir:AVERAGE \
DEF:g="/var/www/htdocs/cacti/rra/wind_dir_69.rrd":wind_dir:AVERAGE \
DEF:h="/var/www/htdocs/cacti/rra/wind_dir_69.rrd":wind_dir:AVERAGE \
DEF:i="/var/www/htdocs/cacti/rra/wind_dir_69.rrd":wind_dir:AVERAGE \
DEF:j="/var/www/htdocs/cacti/rra/wind_speed_46.rrd":wind_speed:AVERAGE \
DEF:ba="/var/www/htdocs/cacti/rra/wind_speed_46.rrd":wind_gusts:AVERAGE \
DEF:bb="/var/www/htdocs/cacti/rra/wind_speed_46.rrd":wind_speed:AVERAGE \
CDEF:cdefa=i,0,GE,i,21.99,GE,UNKN,INF,IF,UNKN,IF \
CDEF:cdefb=i,22,GE,i,67.99,GE,UNKN,INF,IF,UNKN,IF \
CDEF:cdefc=i,68.00,GE,i,111.99,GE,UNKN,INF,IF,UNKN,IF \
CDEF:cdefd=i,112,GE,i,156.99,GE,UNKN,INF,IF,UNKN,IF \
CDEF:cdefe=i,157,GE,i,201.99,GE,UNKN,INF,IF,UNKN,IF \
CDEF:cdeff=i,202,GE,i,246.99,GE,UNKN,INF,IF,UNKN,IF \
CDEF:cdefg=i,292.00,GE,i,336.99,GE,UNKN,INF,IF,UNKN,IF \
CDEF:cdefi=i,337,GT,i,360.99,GT,UNKN,INF,IF,UNKN,IF \
AREA:cdefa#8D85F3:"North" \
AREA:cdefb#9FA4EE:"North East" \
AREA:cdefc#F9FD5F:"East" \
AREA:cdefd#EACC00:"South East\n" \
AREA:cdefe#EAAF00:"South" \
AREA:cdeff#EA8F00:"South West" \
AREA:cdefg#00CF00:"West" \
AREA:cdefg#6557D0:"North West\n" \
AREA:cdefi#8D85F3:"" \
GPRINT:i:LAST:"Current Direction in Degrees\:%8.2lf %s\n" \
AREA:bb#96E78A:"Wind Speed" \
GPRINT:bb:LAST:"Current\:%8.2lf %s" \
GPRINT:bb:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:bb:MAX:"Maximum\:%8.2lf %s\n" \
LINE2:ba#562B29:"Gust Speed" \
GPRINT:ba:LAST:"Current\:%8.2lf %s" \
GPRINT:ba:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:ba:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:bb#000000:""
Odd looking graph
Moderators: Developers, Moderators
Odd looking graph
- Attachments
-
- wind direction using some fancy cdef stuff to create the background AREA to show direction.
- wind.png (57.93 KiB) Viewed 1696 times
-
- standard wind direction graphing the compass degree
- winddir.png (97.92 KiB) Viewed 1696 times
Who is online
Users browsing this forum: No registered users and 1 guest