aboutsummaryrefslogtreecommitdiffstats
path: root/growthplot
diff options
context:
space:
mode:
Diffstat (limited to 'growthplot')
-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 \