Search code examples
latexgnuploteps

Gnuplot export eps file


I have a ton of datapoints - too much for excel, etc to handle, so I'm using gnuplot. The problem is that I want to include the graph in LaTeX later. I know that I can take a PNG screenshot and include that, but I would rather export an EPS file. How do I do this.

In case it matters, this is what I'm plotting:

plot "ATWNetwork.stats" using 1:2 with linespoints ls 2 pt 2 lc 2

Solution

  • gnuplot> set term postscript eps color blacktext "Helvetica" 24
    Terminal type set to 'postscript'
    Options are 'eps noenhanced defaultplex \
       leveldefault color blacktext \
       dashed dashlength 1.0 linewidth 1.0 butt noclip \
       nobackground \
       palfuncparam 2000,0.003 \
       "Helvetica" 24  fontscale 1.0 '
    gnuplot> set output "filename.eps"
    gnuplot> plot "ATWNetwork.stats" using 1:2 with linespoints ls 2 pt 2 lc 2
    gnuplot> set output
    gnuplot> quit