# [Tex/LaTex] How to use Gnuplots .eps and .tex files at all with pdflatex

epsepstopdfgnuplottexinputs

I tried to make a plot with data from a .txt file. The part with gnuplot works, but bringing the diagramm to Latex is frustrating. That's what I do:

— GNUPLOT —

set terminal epslatex size 10cm,5.8cm
set output 'Messw1.tex'
plot '~Long Filepath~/mydata.txt' notitle with lines


Now there are to files in "My Documents" (On partition C, in case it matters. TexLive 2012 and Gnuplot are on a different Partition.): "Messw1.tex" and "Messw1.eps".

— LATEX —

\documentclass[11pt]{scrartcl}
\usepackage{float}
\usepackage{caption}
\usepackage{epstopdf}

\begin{document}

\begin{figure}
\input{~Long Filepath~/Messw1}
\end{figure}

\end{document}


That's the first time in latex I have not the slightest idea, how I can make it work. 🙂
Desperately needing help!

• It sometimes can be a problem if .tex/.eps files are not in a subdir of the main document or the like. Could you copy messw1.tex, messw1.eps into the same directory as your main document and \input messw1.tex?