2011-09-02 107 views
3

如何提高gnuplot的質量?這似乎是一個非常低分辨率的圖像。GNUPLOT:試圖提高質量

下面是我使用的文件的內容:linkage.plot

set terminal pdf 
set out 'linkage.pdf' 

set title "Distribution of Scores" 
set xlabel "Score Value" 
set ylabel "Appearences" 

set yrange [0:50000] 
set xrange [0:70] 

binwidth=.25 
bin(x,width)=width*floor(x/width) 

plot 'linkage.dat' using (bin($1,binwidth)):(1.0) title "Scores"\ 
smooth freq with boxes 

回答

5

gnuplot的PDF輸出通常是相當不錯的(它通過與抗鋸齒等開羅PDF庫中實現)。但這裏的一些點,可以幫助:

  • help terminal pdfgnuplot>提示將提供有關密謀PDF一些幫助。

  • set terminal pdf linewidth 1會給你一個更粗的線寬。

  • [刪除 - 我要糾錯]

+0

謝謝!我甚至沒有想過檢查gnuplot>命令幫助部分。偉大的呼喚。 我對「平穩頻率」不太瞭解 - 有什麼我應該使用的?我發現從這裏... http://stackoverflow.com/questions/2471884/histogram-using-gnuplot – theangryhornet

+0

啊;我可能誤解了這是爲了什麼。我沒有意識到它,搜索後認爲這是做直方圖的「舊」方式,但是你的鏈接顯示它稍有不同。所以最好忽略這一點。實際上我會刪除它,對不起。 –