?? tpdel.gnu
字號:
#!/usr/bin/gnuplot -persist## # G N U P L O T# Linux version 3.7# patchlevel 1# last modified Fri Oct 22 18:00:00 BST 1999# # Copyright(C) 1986 - 1993, 1998, 1999# Thomas Williams, Colin Kelley and many others# # Type `help` to access the on-line reference manual# The gnuplot FAQ is available from# <http://www.ucc.ie/gnuplot/gnuplot-faq.html># # Send comments and requests for help to <info-gnuplot@dartmouth.edu># Send bugs, suggestions and mods to <bug-gnuplot@dartmouth.edu># set noclip pointsset clip oneset noclip twoset bar 1.000000set border 31 lt -1 lw 1.000set xdataset ydataset zdataset x2dataset y2dataset boxwidthset dummy x,yset format x "%g"set format y "%g"set format x2 "%g"set format y2 "%g"set format z "%g"set angles radiansset grid set key title ""set key left top Right noreverse box linetype -2 linewidth 1.000 samplen 4 spacing 1 width 0set nolabelset noarrowset nolinestyleset nologscaleset offsets 0, 0, 0, 0set pointsize 2set encoding defaultset nopolarset noparametricset view 60, 30, 1, 1set samples 100, 100set isosamples 10, 10set surfaceset nocontourset clabel '%8.3g'set mapping cartesianset nohidden3dset cntrparam order 4set cntrparam linearset cntrparam levels auto 5set cntrparam points 5set size ratio 0 1,1set origin 0,0set data style pointsset function style linesset xzeroaxis lt -2 lw 1.000set x2zeroaxis lt -2 lw 1.000set yzeroaxis lt -2 lw 1.000set y2zeroaxis lt -2 lw 1.000set tics inset ticslevel 0.5set ticscale 1 0.5set mxtics defaultset mytics defaultset mx2tics defaultset my2tics defaultset xtics border mirror norotate autofreq set ytics border mirror norotate autofreq set ztics border nomirror norotate autofreq set nox2ticsset noy2ticsset timestamp "" bottom norotate 0.000000,0.000000 ""set rrange [ * : * ] noreverse nowriteback # (currently [-0.00000:10.0000] )set trange [ * : * ] noreverse nowriteback # (currently [-5.00000:5.00000] )set urange [ * : * ] noreverse nowriteback # (currently [-5.00000:5.00000] )set vrange [ * : * ] noreverse nowriteback # (currently [-5.00000:5.00000] )set x2label "" 0.000000,0.000000 ""set timefmt "%d/%m/%y\n%H:%M"set xrange [ * : * ] noreverse nowriteback # (currently [-10.0000:10.0000] )set x2range [ * : * ] noreverse nowriteback # (currently [-10.0000:10.0000] )set y2label "" 0.000000,0.000000 ""set yrange [ * : * ] noreverse nowriteback # (currently [-10.0000:10.0000] )set y2range [ * : * ] noreverse nowriteback # (currently [-10.0000:10.0000] )set zlabel "" 0.000000,0.000000 ""set zrange [ * : * ] noreverse nowriteback # (currently [-10.0000:10.0000] )set zero 1e-08set lmargin -1set bmargin -1set rmargin -1set tmargin -1set locale "C"################ plotting cbr thruput against delay set term X11set output#set yrange [ 0 : 300 ] noreverse nowriteback #set xrange [ 500 : 1500 ] noreverse nowriteback set title "Delay -- Throughuput curve" 0.000000,0.000000 ""set xlabel "Aggregate received thruput in Kbits/sec" 0.000000,0.000000 ""set ylabel "End2end delay in msecs" 0.000000,0.000000 ""plot "clp.dat" u 9:7 t "CLUSTERPOW" w lp pt 9, "comp.dat" u 9:7 t "COMPOW" w lp pt 5, "dsdv6.dat" u 9:7 t "DSDV at power 6" w lp pt 7pause -1set terminal postscript landscape enhanced monochrome dashed defaultplex "Helvetica" 22#set term post eps enhanced color solid 20set output 'tp-del.eps'replot################################## plotting cbr thruput against stdev set term X11set outputset title "Std. deviation of delay -- Throughput curve" 0.000000,0.000000 ""set xlabel "Aggregate received thruput in Kbits/sec" 0.000000,0.000000 ""set ylabel "Stdev of delay in msecs" 0.000000,0.000000 ""plot "clp.dat" u 9:8 t "CLUSTERPOW" w lp pt 9, "comp.dat" u 9:8 t "COMPOW" w lp pt 5, "dsdv6.dat" u 9:8 t "DSDV at power 6" w lp pt 7pause -1set terminal postscript landscape enhanced monochrome dashed defaultplex "Helvetica" 22#set term post eps enhanced color solid 20set output 'tp-stdev.eps'replot################################## plotting cbr packet deliver ratio against sent thruput set term X11set outputset key bottom leftset xrange [ * : * ] noreverse nowriteback # (currently [-10.0000:10.0000] )set yrange [ * : * ] noreverse nowriteback # (currently [-10.0000:10.0000] )set title "Packet delivery ratio -- Sent throughput" 0.000000,0.000000 ""set xlabel "Aggregate sent thruput in Kbits/sec" 0.000000,0.000000 ""set ylabel "Packet delivery ratio" 0.000000,0.000000 ""plot "clp.dat" u ($11*$12):($9/($11*$12)) t "CLUSTERPOW" w lp pt 9, "comp.dat" u ($11*$12):($9/($11*$12)) t "COMPOW" w lp pt 5, "dsdv6.dat" u ($11*$12):($9/($11*$12)) t "DSDV at power 6" w lp pt 7pause -1set terminal postscript landscape enhanced monochrome dashed defaultplex "Helvetica" 22#set term post eps enhanced color solid 20set output 'packdel.eps'replot################################## plotting routing overhead against #flows set term X11set outputset key top leftset xrange [ * : * ] noreverse nowriteback # (currently [-10.0000:10.0000] )set yrange [ * : 68 ] noreverse nowriteback # (currently [-10.0000:10.0000] )set title "Routing overhead -- Sent throughput" 0.000000,0.000000 ""set xlabel "Aggregate sent thruput in Kbits/sec" 0.000000,0.000000 ""set ylabel "Routing overhead in Kbits/sec" 0.000000,0.000000 ""plot "clp.dat" u ($11*$12):10 t "CLUSTERPOW" w lp pt 9, "comp.dat" u ($11*$12):10 t "COMPOW" w lp pt 5, "dsdv6.dat" u ($11*$12):10 t "DSDV at power 6" w lp pt 7pause -1set terminal postscript landscape enhanced monochrome dashed defaultplex "Helvetica" 22#set term post eps enhanced color solid 20set output 'overhead.eps'replot################### EOF
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -