我正在使用 RRDtool 来绘制图表。
现在,这个命令:
rrdtool graph temp.png \
-w 600 -h 200 \
--zoom 1 \
--title "last 24 hours temperature" \
--vertical-label "temperature (°C)" \
--alt-autoscale \
--alt-y-grid \
--start end-1d \
--force-rules-legend \
--legend-position=south \
--rigid \
--slope-mode \
--font "DEFAULT:12:century schoolbook l" --watermark "$(date '+%F %T %Z')" \
DEF:temperature=temp.rrd:temp:AVERAGE \
GPRINT:temperature:LAST:"Current temp.\: %.2lf°C\r" \
LINE1:temperature\#007070:"Mainboard\l"
给我这张图片:
如您所见,图例和文本“当前温度:42.00°C”不会出现在同一高度(基线)上。
我怎样才能让这些线条彼此相邻出现,一个左浮动,另一个右浮动?