gnuplot画一副小图所需要的命令

gnuplot画一副小图所需要的命令_第1张图片

 

gnuplot> set multiplot  //设置多图模式
multiplot> set origin 0.0,0.0 //设置起始位置
multiplot> set size 0.5,0.5  //设置图片大小
multiplot> set title "flows=3"  //设置标题
multiplot> set xlabel 'time(s)'  //设置x轴标题
multiplot> set ylabel 'queue_size(packets)' //设置y轴标题
multiplot> plot "temp.a" with linespoint  //开始画图

 

====================================================

一个画四幅图的完整应用

 

set multiplot
set key bottom   //把图例放在下面,默认是上面
set origin 0.0,0.5
set size 0.5,0.5 
set title "flows=3"
set xlabel 'time(s)'
set ylabel 'queue_size(packets)'
plot "temp3.a" title 'ave_queue' with linespoint   //title是图例的标题

set origin 0.5,0.5
set title "flows=10"
plot "temp10.a" title 'ave_queue' with linespoint 

set origin 0.0,0.0
set title "flows=30"
plot "temp30.a" title 'ave_queue' with linespoint 

set origin 0.5,0.0
set title "flows=50"
plot "temp50.a" title 'ave_queue' with linespoint

你可能感兴趣的:(plot)