How to make eps files using gnuplot

How to make gnuplot generate eps files instead of plot the figures on screen?

First, save a Gnuplot plot as a PostScript file by this commands:

#  gnuplot>   load 'saveplot'
#  gnuplot>   !mv my-plot.ps another-file.ps

The saveplot file’s content:

set size 1.0, 0.6
set terminal postscript portrait enhanced mono dashed lw 1 "Helvetica" 14 
set output "my-plot.ps"
replot

set terminal x11
set size 1,1

Then you can convert the ps file to eps file by tools. On Linux, you can use:

$ ps2epsi another-file.ps another-file.eps

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *