2016-03-26 49 views
0

我的數據集是這樣的:如何繪製框圖與當前誤差線的gnuplot

 
    5 12.467 12.331865 12.602135 12.8 12.8 12.8 
    10 122.766 121.64268 123.88932 51.50933304 48.67632 54.34234696 
    15 42.97799961 40.61421 45.34179039 6.254 5.91003 6.59797 
    20 70.933 70.379865 71.486135 0 0 0 
    25 1226.94033297 1225.463565 1228.41710203 1001.91700041 977.46603459 1026.367965 
    30 55.537 52.482465 58.591535 0 0 0 
    40 1628.744 1598.99428 1658.49372 0 0 0 

第1列是xtics和列3和圖6是主數據。 第2,4和5,7列是錯誤餘量。我怎樣才能在箱形圖中繪製這些數據? 用線圖下面的代碼情節是:

 

    plot [0:50] "data.dat" using 1:2:3:4 with yerrorlines title "title1", \ 
    "" using 1:5:6:7 with yerrorlines title "title2" 
+0

暫無評論...?! –

回答

1

,您可以先

set style histogram errorbars gap 1 
set boxwidth 0.9 
set style fill solid 1.00 border 0 
set style data histograms 
plot "data.dat" using 2:3:4:xtic(stringcolumn(1)) with histograms title "title1",\ 
    "" u 5:6:7 w hist t "title2" 

這是不是很漂亮,但至少應該給你你想要的東西,據我瞭解:

enter image description here