| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 | #!/bin/bash# StarPU --- Runtime system for heterogeneous multicore architectures.# # Copyright (C) 2008, 2009, 2010  Université de Bordeaux 1# Copyright (C) 2010  Centre National de la Recherche Scientifique# # StarPU is free software; you can redistribute it and/or modify# it under the terms of the GNU Lesser General Public License as published by# the Free Software Foundation; either version 2.1 of the License, or (at# your option) any later version.# # StarPU is distributed in the hope that it will be useful, but# WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.# # See the GNU Lesser General Public License in COPYING.LGPL for more details.# generate the input data./starpu_fxt_tool $1# generate the gnuplot script echo "#!/usr/bin/gnuplot -persist" 			> histo.gpecho "set term postscript eps enhanced color" 		>> histo.gpecho "set output \"histo.eps\""				>> histo.gpecho "set boxwidth 0.75 absolute" 			>> histo.gpecho "set boxwidth 0.75 absolute"			>> histo.gpecho "set nokey"			>> histo.gpecho "set style fill   solid 1.00 border -1"		>> histo.gp#echo "set key invert samplen 4 spacing 1 width 0 height 0"	>> histo.gp#echo "set style histogram rowstacked title  offset character 0, 0, 0"	>> histo.gpecho "set style histogram rowstacked"	>> histo.gpecho "set style data histograms"			>> histo.gpecho "set xtics border in scale 1,0.5 nomirror rotate by -45  offset character 0, 0, 0"	>> histo.gp#and the actual plotting part :ncols=`head -1 data |wc -w`color="red"echo "plot \\"		>> histo.gpfor i in `seq 1 $(($ncols - 2))`doif [ $color == "red" ]; then	color="green"else	color="red"fiecho "\"data\" using $i lt rgb \"$color\",\\"	>> histo.gpdoneif [ $color == "red" ]; then	color="green"else	color="red"fiecho "\"data\" using $(($ncols - 1)) lt rgb \"$color\""	>> histo.gp# now call the scriptgnuplot histo.gp
 |