"Fossies" - the Fresh Open Source Software Archive

Member "NetPIPE-3.7.2/bin/feplot" (19 Aug 2010, 1163 Bytes) of package /linux/privat/old/NetPIPE-3.7.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/sh
    2 
    3 outputs=$*
    4 
    5 echo " "
    6 echo "Plotting $* to gplot.ps"
    7 echo " "
    8 
    9 index=0
   10 
   11 for ofile in $outputs
   12 do
   13   index=`expr $index + 1`
   14 #  echo index = $index
   15   OUTPUTS="${OUTPUTS} \"${ofile}\" ls ${index},"
   16 done
   17 
   18 OUTPUTS=`echo $OUTPUTS | sed 's/,$//g'`
   19 
   20 #echo "outputs = $OUTPUTS"
   21 
   22 echo "set data style lines" > .gplot
   23 echo "set logscale x" >> .gplot
   24 echo "set xrange [1:10000000]" >> .gplot
   25 echo "set yrange [0:100]" >> .gplot
   26 echo "set ylabel \"Bandwidth in Mbps\"" >> .gplot
   27 echo "set xlabel \"Message Size in Bytes\"" >> .gplot
   28 
   29 #echo "set linestyle 1 lt -1 lw 4" >> .gplot
   30 echo "set linestyle 1 lt  3 lw 4" >> .gplot
   31 echo "set linestyle 2 lt  1 lw 4" >> .gplot
   32 echo "set linestyle 3 lt  5 lw 4" >> .gplot
   33 echo "set linestyle 4 lt  2 lw 4" >> .gplot
   34 echo "set linestyle 5 lt  4 lw 4" >> .gplot
   35 echo "set linestyle 6 lt  6 lw 4" >> .gplot
   36 #echo "set linestyle 7 lt  3 lw 4" >> .gplot
   37 echo "set linestyle 7 lt -1 lw 4" >> .gplot
   38 echo "set linestyle 8 lt  7 lw 4" >> .gplot
   39 
   40 echo "set key 80,90" >> .gplot
   41 echo "set terminal postscript color" >> .gplot
   42 echo "set output \"gplot.ps\"" >> .gplot
   43 echo "plot $OUTPUTS" >> .gplot
   44 
   45 gnuplot < .gplot
   46 
   47 ghostview gplot.ps
   48