text position/alignment

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
frippe
Posts: 19
Joined: Wed Dec 08, 2004 4:41 am

text position/alignment

Post by frippe »

I'm modifying an graph template for wxer.pl. However I'm having trouble aligning the gprint marked with red. Are there any tricks to move the gprint to the left?

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-604800 \
--end=-1800 \
--title="aWeather - Ushuaia - Temperature and Wind" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale \
--vertical-label="C" \
DEF:a="/var/www/localhost/htdocs/cacti/rra/dummy_wx_temp_254.rrd":wx_wind:AVERAGE \
DEF:b="/var/www/localhost/htdocs/cacti/rra/dummy_wx_temp_254.rrd":wx_temp:AVERAGE \
DEF:c="/var/www/localhost/htdocs/cacti/rra/dummy_wx_temp_254.rrd":wx_temp:AVERAGE \
DEF:d="/var/www/localhost/htdocs/cacti/rra/dummy_wx_temp_254.rrd":wx_temp:AVERAGE \
DEF:e="/var/www/localhost/htdocs/cacti/rra/dummy_wx_temp_254.rrd":wx_temp:AVERAGE \
DEF:f="/var/www/localhost/htdocs/cacti/rra/dummy_wx_temp_254.rrd":wx_temp:AVERAGE \
DEF:g="/var/www/localhost/htdocs/cacti/rra/dummy_wx_temp_254.rrd":wx_temp:AVERAGE \
DEF:h="/var/www/localhost/htdocs/cacti/rra/dummy_wx_temp_254.rrd":wx_temp:AVERAGE \
DEF:i="/var/www/localhost/htdocs/cacti/rra/dummy_wx_temp_254.rrd":wx_temp:AVERAGE \
DEF:j="/var/www/localhost/htdocs/cacti/rra/dummy_wx_temp_254.rrd":wx_temp:AVERAGE \
DEF:ba="/var/www/localhost/htdocs/cacti/rra/dummy_wx_temp_254.rrd":wx_temp:AVERAGE \
DEF:bb="/var/www/localhost/htdocs/cacti/rra/dummy_wx_temp_254.rrd":wx_temp:AVERAGE \
DEF:bc="/var/www/localhost/htdocs/cacti/rra/dummy_wx_temp_254.rrd":wx_temp:AVERAGE \
DEF:bd="/var/www/localhost/htdocs/cacti/rra/dummy_wx_temp_254.rrd":wx_temp:AVERAGE \
DEF:be="/var/www/localhost/htdocs/cacti/rra/dummy_wx_temp_254.rrd":wx_temp:AVERAGE \
DEF:bf="/var/www/localhost/htdocs/cacti/rra/dummy_wx_temp_254.rrd":wx_windchill:AVERAGE \
CDEF:cdeff=a,0.3,LT,be,0,IF \
CDEF:cdefg=a,17.2,LT,a,13.9,GE,be,0,IF,0,IF \
CDEF:cdefh=a,1.6,LT,a,0.3,GE,be,0,IF,0,IF \
CDEF:cdefi=a,20.8,LT,a,17.2,GE,be,0,IF,0,IF \
CDEF:cdefj=a,3.4,LT,a,1.6,GE,be,0,IF,0,IF \
CDEF:cdefba=a,24.5,LT,a,20.8,GE,be,0,IF,0,IF \
CDEF:cdefbb=a,5.5,LT,a,3.4,GE,be,0,IF,0,IF \
CDEF:cdefbc=a,28.5,LT,a,24.5,GE,be,0,IF,0,IF \
CDEF:cdefbd=a,8.0,LT,a,5.5,GE,be,0,IF,0,IF \
CDEF:cdefbe=a,32.7,LT,a,28.5,GE,be,0,IF,0,IF \
CDEF:cdefbf=a,10.8,LT,a,8.0,GE,be,0,IF,0,IF \
CDEF:cdefbg=a,32.7,GE,be,0,IF \
CDEF:cdefbh=a,13.9,LT,a,10.8,GE,be,0,IF,0,IF \
LINE3:a#:"" \
COMMENT:"Wind Speed" \
GPRINT:a:LAST:" Last\:%5.1lf %s" \
GPRINT:a:MAX:"Max\:%5.1lf %s" \
GPRINT:a:MIN:"Min\:%5.1lf %s\n" \
AREA:cdeff#0000FF:"0-0.2 m/s - Calm " \
AREA:cdefg#CEFF00:"13.9-17.1 m/s - Near Gale\n" \
AREA:cdefh#004AFF:"0.3-1.5 m/s - Light Air " \
AREA:cdefi#FFE600:"17.2-20.7 m/s - Gale\n" \
AREA:cdefj#0073FF:"1.6-3.3 m/s - Light Breeze " \
AREA:cdefba#FFAE00:"20.8-24.4 m/s - Severe Gale\n" \
AREA:cdefbb#00A3FF:"3.4-5.4 m/s - Gentle Breeze " \
AREA:cdefbc#FF7F00:"24.5-28.4 m/s - Storm\n" \
AREA:cdefbd#00E6FF:"5.5-7.9 m/s - Moderate Breeze " \
AREA:cdefbe#FF4F00:"28.5-32.6 m/s - Violent Storm\n" \
AREA:cdefbf#00FFB3:"8.0-10.7 m/s - Fresh Breeze " \
AREA:cdefbg#FF0000:"32+ m/s - Hurricane\n" \
AREA:cdefbh#7FFF00:"10.8-13.8 m/s - Strong Breeze\n" \
LINE1:be#000000:"Temperature" \
GPRINT:be:LAST:" Last\:%5.1lf %s" \
GPRINT:be:MAX:"Max\:%5.1lf %s" \
GPRINT:be:MIN:"Min\:%5.1lf %s\n" \
LINE1:bf#D8ACE0:"Wind Chill" \
GPRINT:bf:LAST:" Last\:%5.1lf %s" \
GPRINT:bf:MAX:"Max\:%5.1lf %s" \
GPRINT:bf:MIN:"Min\:%5.1lf %s\n" \
COMMENT:"Last updated: Fri 04 Feb 14:26:21 CET 2005
Attachments
graph.jpg
graph.jpg (54.27 KiB) Viewed 1002 times
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests