I have looked at numerous posts about this topic and have yet to find an answer. I'm usually quite resilient to these kind of problems but have to admit to defeat on this one. I cannot turn a .dat file into decent latex code. My gnuplot input code looks like
plot "file.dat" using 1:6 with lines
set terminal epslatex
set output "output.tex"
set label "$\alpha$"
set out
This produces a .tex and a .eps file as required. I now compile a plot.tex file with pdflatex and the following code:
\documentclass{article}
\usepackage{graphics}
\usepackage{epstopdf}
\begin{document}
\include{output.tex}
\end{document}
When I open the plot.pdf there is nothing there. There are no errors in the pdflatex complilation either. The .dat definitely has data and I believe the issue is with the gunplot code; I can't plot the .dat file inside the epslatex terminal and the corresponding .eps file is empty. If someone could tell me how to do this that would be great. I can save the data quite easily as an .eps file but I really want the latex xlabels etc.
Cheers
Jack