⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 demo1.plot

📁 采用蚂蚁算法实现ad hoc网络路由协议,平台为ns2
💻 PLOT
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -