1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
# set terminal png transparent nocrop enhanced font arial 8 size 420,320
# set output 'histograms.5.png'
set border 3 front linetype -1 linewidth 1.000
set boxwidth 0.75 absolute
set style fill solid 1.00 border -1
set grid nopolar
set grid noxtics nomxtics ytics nomytics noztics nomztics \
nox2tics nomx2tics noy2tics nomy2tics nocbtics nomcbtics
set grid layerdefault linetype 0 linewidth 1.000, linetype 0 linewidth 1.000
set key outside right top vertical Left reverse enhanced autotitles columnhead nobox
set key invert samplen 4 spacing 1 width 0 height 0
set style histogram rowstacked title offset character 0, 0, 0
set datafile missing '-'
set style data histograms
set xtics border in scale 1,0.5 nomirror rotate by -45 offset character 0, 0, 0
set xtics ("5" 0.00000, "10" 1.00000, "15" 2.00000, "20" 3.00000, "25" 4.00000, "30" 5.00000)
set noytics
set title "Distribution of type packet type"
set ylabel "% of total number of packet transmitted"
set yrange [ 0.00000 : 100.000 ] noreverse nowriteback
plot 'percent.dat' using (100.*$2/$6):xtic(1) title column(2), \
'' using (100.*$3/$6) title column(3), \
'' using (100.*$4/$6) title column(4), \
'' using (100.*$5/$6) title column(5) |
Partager