问题
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 pdfat thegnuplot>prompt will give some help about plotting to pdf.set terminal pdf linewidth 1will give you a thicker line width.[deleted - my mistake]
来源:https://stackoverflow.com/questions/7277984/gnuplot-trying-to-increase-the-quality