\documentclass[a4paper]{article}

\usepackage{graphicx}

\begin{document}


\section*{Simple GnuPlot example}
\subsection*{Alberto Simoes}

Using this \LaTeX/GnuPlot combination:
\begin{verbatim}
\begin{import_gnuplot}[width=0.5\textwidth]
set title "Tempos obtidos"
set xlabel "corpus size (K words)"
set ylabel "time (s)"
show xlabel
show ylabel
plot "-" using 1:2 title 'nat-pre'     with lines 3,\
     "-" using 1:2 title 'nat-initmat' with linespoints 2 4
# Corpus size, pre, init
77    0.5
94    10 
118   1
318   1
805   5 
e
77    6
94    8
118   4
805   57
e
\end{import_gnuplot}
\end{verbatim}
we get

\begin{import_gnuplot}[width=0.5\textwidth]
set title "Tempos obtidos"
set xlabel "corpus size (K words)"
set ylabel "time (s)"
show xlabel
show ylabel
plot "-" using 1:2 title 'nat-pre'     with lines 3,\
     "-" using 1:2 title 'nat-initmat' with linespoints 2 4
# Corpus size, pre, init
77    0.5
94    10 
118   1
318   1
805   5 
e
77    6
94    8
118   4
805   57
e
\end{import_gnuplot}


\end{document}
