demo1.plot
来自「采用蚂蚁算法实现ad hoc网络路由协议,平台为ns2」· PLOT 代码 · 共 81 行
PLOT
81 行
set title "Delivery Ratio vs Offered Kbps"set xlabel "Offered Kbps"set ylabel "Delivery Ratio"set key title "Routing Protocol"set terminal postscript eps enhancedset output "analysed_results/demo1-1.ps"plot \ 'analysed_results/demo1.data' index 0 using 2:4 title "AODV" with linespoints lw 2,\ 'analysed_results/demo1.data' index 1 using 2:4 title "DSR" with linespoints lw 2,\ 'analysed_results/demo1.data' index 2 using 2:4 title "SWARM" with linespoints lw 2set title "Throughput vs Offered Kbps"set xlabel "Offered Kbps"set ylabel "Throughput"set key title "Routing Protocol"set terminal postscript eps enhancedset output "analysed_results/demo1-2.ps"plot \ 'analysed_results/demo1.data' index 0 using 2:9 title "AODV" with linespoints lw 2,\ 'analysed_results/demo1.data' index 1 using 2:9 title "DSR" with linespoints lw 2,\ 'analysed_results/demo1.data' index 2 using 2:9 title "SWARM" with linespoints lw 2set title "Transmissions per Packet Received vs Offered Kbps"set xlabel "Offered Kbps"set ylabel "Transmissions per Packet Received"set key title "Routing Protocol"set terminal postscript eps enhancedset output "analysed_results/demo1-3.ps"plot \ 'analysed_results/demo1.data' index 0 using 2:14 title "AODV" with linespoints lw 2,\ 'analysed_results/demo1.data' index 1 using 2:14 title "DSR" with linespoints lw 2,\ 'analysed_results/demo1.data' index 2 using 2:14 title "SWARM" with linespoints lw 2set title "Transmissions per Packet Sent vs Offered Kbps"set xlabel "Offered Kbps"set ylabel "Transmissions per Packet Sent"set key title "Routing Protocol"set terminal postscript eps enhancedset output "analysed_results/demo1-4.ps"plot \ 'analysed_results/demo1.data' index 0 using 2:19 title "AODV" with linespoints lw 2,\ 'analysed_results/demo1.data' index 1 using 2:19 title "DSR" with linespoints lw 2,\ 'analysed_results/demo1.data' index 2 using 2:19 title "SWARM" with linespoints lw 2set title "Average Latency vs Offered Kbps"set xlabel "Offered Kbps"set ylabel "Average Latency"set key title "Routing Protocol"set terminal postscript eps enhancedset output "analysed_results/demo1-5.ps"plot \ 'analysed_results/demo1.data' index 0 using 2:24 title "AODV" with linespoints lw 2,\ 'analysed_results/demo1.data' index 1 using 2:24 title "DSR" with linespoints lw 2,\ 'analysed_results/demo1.data' index 2 using 2:24 title "SWARM" with linespoints lw 2
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?