# Problem with outputting graphs using gnuplot and TikZ

I want to draw graph using gnuplot and TikZ with the source (this is MWE) shown below, but it didn't work for me.

\documentclass[uplatex]{jsarticle}
\usepackage{gnuplot-lua-tikz}
\begin{document}
\include{sin}
\end{document}


In this code, sin.tex is generated by this gnuplot's code:

set terminal tikz solid
set output "sin.tex"
plot sin(x)


The following image is the outcome.

However, gnuplot's plot sin(x) outputs sine curve when the terminal is aqua. Can anyone solve this probem?

• Thank you for the comment. There is no error but so many warnings, and most of them are ** WARNING ** Interpreting special command ps: (ps:) failed. ** WARNING ** >> at page="1" position="(foo, bar)" (in PDF) ** WARNING ** >> xxx "ps:: restore " ** WARNING ** Unknown token "restore" ** WARNING ** Interpreting PS code failed!!! Output might be broken!!! – Merzong Oct 27 '14 at 15:11
It seems to me, that the "tikz" terminal of gnuplot is intended for the pdflatex compiler and you use the latex compiler to get a intermediate .dvi file.
• I don't know the exact reason of this error, but I get what I desired after uninstalling and re-installing gnuplot. I use e-upLaTeX and this compiler usually has no problem with TikZ. Thanks anyway :) – Merzong Oct 31 '14 at 5:21