Put your data in text editor as shown.. separate data files
Open Terminal and type gnuplot. I hope u already have installed it.
Go to the directory.
Write down Following code step by step.
gnuplot> 1. set term wxt enhanced
2 . set yrange [0:1]
3. set ytics .1
4. set grid ytics
5. set style data histogram
6. set style histogram cluster gap 1
7. set style fill pattern border -1
8. set ylabel 'Delivery Rate'
9. set xlabel 'Buffer Size(MB)'
10. set style line 1 lc rgb 'black' lt 1 lw 2 pt 2 ps 1.1
11. set style line 2 lc rgb 'red' lt 1 lw 2 pt 9 ps 1
12. set style line 3 lc rgb 'blue' lt 1 lw 2 pt 5 ps 1.1
13. set style line 4 lc rgb 'navy' lt 1 lw 2 pt 7 ps 1.1
14. plot 'SnW.dat' title 'Binary SprayNwait' with linespoints ls 1,
'SnW_NoBinary.dat' title 'SprayNwait' with linespoints ls 2 ,
'Epidemic.dat' title 'Epidemic' with linespoints ls 3,
'Repl_Algo.dat' title 'Rep_Algo' with linespoints ls 4