~ubuntu-branches/ubuntu/karmic/netpipe/karmic

« back to all changes in this revision

Viewing changes to bin/geplot

  • Committer: Bazaar Package Importer
  • Author(s): Camm Maguire
  • Date: 2004-10-26 20:28:24 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20041026202824-fdmack9iksv54eqe
Tags: 3.6.2-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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