gnuplot box-and-whisker聚集

时间:2014-01-06 15:11:31

标签: gnuplot

我试图在gnuplot中为两个文件绘制一个聚集的盒子和胡须图,我希望输出共享相同的xtics。相反,我得到每个文件的xtic。这是我的剧本:

set term pdf color enhanced
#set output ".pdf"
set bar 2
set style fill empty
set ylabel "Link Speed (kbps)"
set xlabel "Rate (Mbps)"
set grid

plot "file1.txt" using ($1-0.05):5:4:10:9:xticlabels(2) with candlesticks title "video" whiskerbars lw 3 lt 2, \
     "" using ($1-0.05):7:7:7:7:xticlabels(2) with candlesticks lt 2 lw 5 notitle, \
     "" using ($1-0.05):3:xticlabels(2) with points lt 18 pt 7 ps 0.7 notitle, \
     "file2.txt" using ($1+0.05):5:4:10:9:xticlabels(2) with candlesticks title "tcp" whiskerbars lw 3 lt 3, \
     "" using ($1+0.05):7:7:7:7:xticlabels(2) with candlesticks lt 3 lw 5 notitle, \
     "" using ($1+0.05):3:xticlabels(2) with points lt 18 pt 7 ps 0.7 notitle

0 个答案:

没有答案