aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xgrowthplot14
1 files 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
+
+
+
+
+
+
+