From 7fd12619d620e33036c832f9d7a5149fe350fe84 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 25 Feb 2001 20:51:18 +0000 Subject: Generate left-hanging labels properly. svn path=/trunk/; revision=3149 --- growthplot | 6 +++--- 1 file 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 \ -- cgit v1.2.3