How to make eps files using gnuplot

Posted on In QA

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

Eric Ma

Eric is a systems guy. Eric is interested in building high-performance and scalable distributed systems and related technologies. The views or opinions expressed here are solely Eric's own and do not necessarily represent those of any third parties.

Leave a Reply

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