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.


gnuplotinstalled, and you need to havewrite18enabled in order to be able to callgnuplotfrom within LaTeX. Could you check whether there's a line likerunsystem(gnuplot "texse2_contourtmp0.script")...executed.in your.logfile? – Jake Jan 02 '13 at 14:42gnuplot(4.6.0) at https://sourceforge.net/projects/gnuplot/files/gnuplot/4.6.0/ (the file is calledgp460-win32-setup.exe). – Jake Jan 02 '13 at 14:53gnuplot, compiled with--enable-write18and you get the same error? Can you include any other information that might be helpful, for example a complete MWE (beginning with\documentclassand ending in\end{document}), and yourlogfile? To help identify where the problem lies, have you tried compiling it from the command line or only through your editor? – cyberSingularity Jan 09 '13 at 18:13command promptby clicking Start Menu and typingcmdthenEnter. In the terminal, go to your working directory by typingcd nameofdirectorythen runpdflatex --enable-write18 yourfilename.texorpdflatex --shell-escape yourfilename.tex– hpesoj626 Jan 10 '13 at 03:23