GNUPLOT: Trying to increase the quality

假装没事ソ 提交于 2019-12-10 18:33:28

问题


How do I increase the quality in gnuplot? It seems like it's a very low-res image.

Here's the contents of the file i'm using: 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

回答1:


gnuplot pdf output is usually pretty good (it's implemented via the cairo pdf library with antialiasing etc). but here some points that may help:

  • help terminal pdf at the gnuplot> prompt will give some help about plotting to pdf.

  • set terminal pdf linewidth 1 will give you a thicker line width.

  • [deleted - my mistake]



来源:https://stackoverflow.com/questions/7277984/gnuplot-trying-to-increase-the-quality

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!