diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1999-09-24 06:27:29 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1999-09-24 06:27:29 +0000 |
commit | 047893de7bd96fb6755bf161e6397256e2e5f3b5 (patch) | |
tree | 19a0520ef248b1fccba1fe3d672fd0990b0c9845 /growthplot | |
parent | 4f79d3e5dbcd4f53cf7d8a4e3b4013da5496c81b (diff) | |
download | fetchmail-047893de7bd96fb6755bf161e6397256e2e5f3b5.tar.gz fetchmail-047893de7bd96fb6755bf161e6397256e2e5f3b5.tar.bz2 fetchmail-047893de7bd96fb6755bf161e6397256e2e5f3b5.zip |
Does the plot correctly in X11 mode.
svn path=/trunk/; revision=2597
Diffstat (limited to 'growthplot')
-rwxr-xr-x | growthplot | 48 |
1 files changed, 40 insertions, 8 deletions
@@ -8,24 +8,56 @@ timeseries >/tmp/growthplot$$ grep "^[0-9]" /tmp/growthplot$$ >/tmp/growthnumbers$$ sed '/^4.2.9/,$d' </tmp/growthnumbers$$ >/tmp/growthannounce$$ -gnuplot <<EOF +cat >IMAGE <<EOF set title "Fetchmail project growth history" set xlabel 'Days since project start' set ylabel 'Participants' 6 # Put it right over the Y axis -set key top left box +set key bottom right box +EOF + +# OK, now write the event labels +( + echo "count=0" + echo "breakheight=510" + while read version friends announce total days date + do + if [ "$version" = '%' ] + then + legend="$friends $announce $total $days $date" + echo "# Associate $lastday to '$legend'" + echo "count = count + 1" + echo "lastday = $lastday - 5" + echo set arrow \ + from lastday, 0 to lastday, breakheight \ + nohead + echo "endx = lastday + 50 + count * 25" + echo "endy = breakheight + 50 + count * 50" + echo "set arrow \ + from lastday, breakheight to endx, endy" + echo "set label '$legend' at endx+10, endy" + else + lastday=$days + fi + done +) </tmp/growthplot$$ >>IMAGE + +cat >>IMAGE <<EOF # First, plot total participants -plot [] [0:] '/tmp/growthnumbers$$' using 5:4 title "Both lists" with points 3 +plot [] [0:] '/tmp/growthnumbers$$' using 5:4 \ + title "Both lists" with points 3 # Then, plot announce-list only starting from the Julian date of the split -replot '/tmp/growthannounce$$' using 5:3 title "fetchmail-announce" with points 1 +replot '/tmp/growthannounce$$' using 5:3 \ + title "fetchmail-announce" with points 4 # Finally, plot the developer list -replot '/tmp/growthannounce$$' using 5:2 title "fetchmail-friends" with points 2 - -pause 9999 +replot '/tmp/growthannounce$$' using 5:2 \ + title "fetchmail-friends" with points 2 EOF -rm -f /tmp/growth* +echo "pause 9999" >>IMAGE +gnuplot IMAGE +rm -f /tmp/growth* |