2016-06-09 72 views
0

我想繪製使用gnuplot作爲boxplot以下。對我的絕望而言,我無法在圖表中獲得正確的縮放比例。需要正確縮放boxplot使用gnuplot

65 804.0 827.0 832.975975976 842.0 857.0 
64 797.0 827.0 832.329329329 842.0 857.0 
128 894.0 916.0 923.955955956 931.0 954.0 
129 894.0 916.0 923.25025025 931.0 947.0 
256 1080.0 1096.0 1106.57157157 1117.0 1133.0 
257 1073.0 1096.0 1106.38938939 1117.0 1133.0 
512 1437.0 1461.0 1471.05305305 1479.0 1498.0 
513 1445.0 1467.0 1471.5965966 1482.0 1498.0 
1024 2168.0 2191.0 2200.5005005 2206.0 2228.0 
1025 2169.0 2191.0 2199.74774775 2206.0 2228.0 
1518 2876.0 2898.0 2904.15015015 2913.0 2929.0 

以下是我的代碼。

set style fill solid 2.25 border -1 
set style boxplot outliers pointtype 7 
set style data boxplot 

set terminal jpeg large size 800,600 
set output 'latency.jpeg' 


plot 'finalresults.txt' using 1:2:3:5:6 with candlesticks title 'Quartiles' whiskerbars, \ 
''   using 1:4:4:4:4 with candlesticks lt -1 notitle 
+0

您能否詳細說明「我無法得到正確的縮放比例」? – Miguel

+0

順便說一句:你不需要設置'boxplot'選項,因爲你不用'boxplot'來繪圖。 – Christoph

回答

0

情節看起來很奇怪,因爲你有非常接近彼此的abscissae。是否預計?你想要以他們真正的橫坐姿或者有規律的間隔呈現盒子和鬍鬚嗎?在後一種情況下,將您的using子句更改爲using 0:2:3:5:6:xtic(1)。也添加一個set boxwidth 0.45