"Fossies" - the Fresh Open Source Software Archive

Member "NetPIPE-3.7.2/bin/geplot" (19 Aug 2010, 1186 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. See also the latest Fossies "Diffs" side-by-side code changes report for "geplot": 4.x_vs_3.7.2.

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