2017-06-14 116 views
1

我正在嘗試一個非常簡單的gnuplot圖。 數據是gnuplot直方圖酒吧空的空間

Average 0.177 0.167 
Median 0.179 0.173 

和圖形代碼:

set style fill solid border 0 
set boxwidth 1.5 
set style histogram clustered 
set style data histograms 
plot "PDR.txt" using 2:xtic(1) lt rgb "#406090",\"" 0" using 3 lt rgb "#40FF0 

問題是,產生的圖有太多的空間無處不在,在中間,尤其是左,右。我怎樣才能減少這些? enter image description here

+0

[如何縮小直方圖gnuplot中的間隙?](https://stackoverflow.com/questions/24166751/how-to-reduce-the-gaps-in-the -histogram-gnuplot) – opisthofulax

回答

1

您應該將xrange設置爲所需的長度,例如, set xrange [-0.25:1.5]在我的電腦上看起來不錯

+0

它只能部分解決問題(左側和右側的空間)。我認爲真正的交易是消除......':-)' – opisthofulax

+1

之間的空間,因爲你可以設置使用'set Smargin N'來減少劇情的最大值,其中S可以是l,r,t,b側(左,右,上,下),N是0和1之間的數字 – PinkFloyd