I'm reproducing the following example from pgfplots manual.
\begin{tikzpicture}
\begin{axis}[view={0}{90}]
\addplot3[contour gnuplot]
{x*y};
\end{axis}
\end{tikzpicture}
But this code produces the following error:
Package pgfplots Error: sorry, plot file{Example_contourtmp0.table} could not be opened.
I would highly appreciate if you point me what I'm missing. Thanks
P.S. I'm using MikTex 2.9 on Windows 7.
Edit
Following @hpesoj626 guidelines, I got the following error message.
gnuplot
installed, and you need to havewrite18
enabled in order to be able to callgnuplot
from within LaTeX. Could you check whether there's a line likerunsystem(gnuplot "texse2_contourtmp0.script")...executed.
in your.log
file?gnuplot
, compiled with--enable-write18
and you get the same error? Can you include any other information that might be helpful, for example a complete MWE (beginning with\documentclass
and ending in\end{document}
), and yourlog
file? To help identify where the problem lies, have you tried compiling it from the command line or only through your editor?