aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-02-25 20:51:18 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-02-25 20:51:18 +0000
commit7fd12619d620e33036c832f9d7a5149fe350fe84 (patch)
tree990a32702efb132ac84e75f5811638db3b2f1e3c
parent5bcaacaf9e1a43222649cfbf1da75156a19b9c9f (diff)
downloadfetchmail-7fd12619d620e33036c832f9d7a5149fe350fe84.tar.gz
fetchmail-7fd12619d620e33036c832f9d7a5149fe350fe84.tar.bz2
fetchmail-7fd12619d620e33036c832f9d7a5149fe350fe84.zip
Generate left-hanging labels properly.
svn path=/trunk/; revision=3149
-rwxr-xr-xgrowthplot6
1 files changed, 3 insertions, 3 deletions
diff --git a/growthplot b/growthplot
index b6e57aae..fa381714 100755
--- a/growthplot
+++ b/growthplot
@@ -45,9 +45,9 @@ EOF
else
# Label under curve hanging left, arrow up
arrowhead=$((lasttotal-5))
- # This is a crock...
- lablen=475
- echo "set label '$legend' at $lastday-$lablen, $endy-15"
+ strlen=`python -c "print len('$legend')"`
+ lablen=$((strlen*22))
+ echo "set label '$legend' at $lastday-$lablen+10, $endy-15"
fi
echo set arrow \
from $lastday, $endy \