gnuplot盒和晶须簇

gnuplot盒和晶须簇,gnuplot,Gnuplot,我试图在gnuplot中为两个文件绘制一个聚集的方框和胡须图,我希望输出共享相同的xtic。相反,我为每个文件获取一个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

我试图在gnuplot中为两个文件绘制一个聚集的方框和胡须图,我希望输出共享相同的xtic。相反,我为每个文件获取一个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

从你写的来看,这应该相当于这个问题,对吧?是的,没错。非常感谢你在那里指导我@ChristophIt工作了。再次感谢@Christoph。