2011-09-02 108 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

啊;我可能误解了这是为了什么。我没有意识到它,搜索后认为这是做直方图的“旧”方式,但是你的链接显示它稍有不同。所以最好忽略这一点。实际上我会删除它,对不起。 –