[rrd-users] resize graph

Toni de la Fuente toni at blyx.com
Tue Mar 14 22:52:01 MET 2006

Hi all,

I'm generating graph with this command (rrdtool 1.0.50 fedora core 3):

/usr/bin/rrdtool graph db_traffic_day.png \
--start=-86400 \
--end=-300 \
--title="MySQL Throughtput - day (5 min avg)" \
--base=1000 \
--alt-autoscale-max \
--lower-limit=0 \
--color=BACK#FFFFFF \
--vertical-label="Bytes sent/received" \
DEF:dbsent="db_traffic.rrd":dbsent:AVERAGE \
DEF:dbreceived="db_traffic.rrd":dbreceived:AVERAGE \
"CDEF:suma1=dbsent" \
"CDEF:suma2=dbreceived" \
"CDEF:total=suma1,suma2,+" \
AREA:dbsent#00FF8f:"Bytes sent    "  \
GPRINT:dbsent:LAST:"Current\:%8.0lf %s"  \
GPRINT:dbsent:AVERAGE:"Average\:%8.0lf %s"  \
GPRINT:dbsent:MAX:"Maximum\:%8.0lf %s\n" \
AREA:dbreceived#FF8f00:"Bytes received"  \
GPRINT:dbreceived:LAST:"Current\:%8.0lf %s"  \
GPRINT:dbreceived:AVERAGE:"Average\:%8.0lf %s"  \
GPRINT:dbreceived:MAX:"Maximum\:%8.0lf %s\n" \

  I obtain a png graph with w=491px and h=185px size but I need a  
graph with w=350px and h=150px. If I use --height=150 and --width=350  
options I only can resize the canvas and If I use <img  
src="db_traffic_day.png" width="350" height="150"> the image can't  
see fine with almost all browsers.

How can I resize an entire graph?

Thanks a lot!!!


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