From 5a984be7f8301d317fa61120dd57427c9189296b Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 25 Feb 2001 08:31:16 +0000 Subject: Ready to translate out of sell. svn path=/trunk/; revision=3143 --- growthplot | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/growthplot b/growthplot index bb43297d..d37ff026 100755 --- a/growthplot +++ b/growthplot @@ -38,11 +38,14 @@ EOF echo "lastday = $lastday - 5" echo "lasttotal = $lasttotal" echo "endy = breakheight + 50 + count * 50" + echo "if (endy > lasttotal) arrowhead = lasttotal+50" + echo "if (endy <= lasttotal) arrowhead = lasttotal-5" echo set arrow \ from lastday, endy \ - to lastday, lasttotal+50 \ + to lastday, arrowhead \ head - echo "set label '$legend' at lastday-10, endy+15" + echo "if (endy > lasttotal) set label '$legend' at lastday-10, endy+15" + echo "if (endy <= lasttotal) set label '$legend' at lastday-500, endy-15" else lastday=$days lasttotal=$total @@ -75,3 +78,10 @@ gnuplot /tmp/growthimage$$ >growth.png rm -f /tmp/growth* # growthplot ends here + + + + + + + -- cgit v1.2.3