I'm trying to use epslatex to create a standalone but the file .tex created can't be compiled because \end{document} and \end{picture} are missing, why is this ? Sample code
set terminal epslatex standalone
set output "sample.tex"
plot "data.txt" using 1:2 pointtype 1 pointsize 1
I'm plotting data from a text file maybe is this the problem ? Anyway the figure is created only the .tex file is not working