making high-quality eps figures using gnuplot for inclusion in latex

13.5k Views Asked by At

I make plots using gnuplot by

set term postscript eps color blacktext "Helvetica" 24
set output "filename.eps"

However, when I include the eps file in latex file, the quality of eps is not satisfactory.

I have also searched google a lot and saw some sites such as http://www.cs.cityu.edu.hk/~tanrui/eps.html, however, my figures are more complicated that theirs and hence their commands don't help me fully. I also checked GNUPLOT: Trying to increase the quality but my figures are eps, not pdf.

Can someone tell, how to improve the quality of figures.

2

There are 2 best solutions below

1
On

you can try to increase the output resolution, for example:

set term postscript eps size 1024, 720 color blacktext "Helvetica" 24

Then use maximum figure width in latex

includegraphics[width = \paperwidth]{yourfigurefilepath}
1
On

I think this answear might help: https://stackoverflow.com/a/7584726/2584653 (you just need to use "eps" instead of "png" for the final file). Actually this is something I usually use.