title: Gnuplot not recognized in TexStudio
body: <p>I use <em>TexStudio 2.8.6</em> with <em>MikTex 2.9 (full installation)</em> in a Win-7 machine. So, <code>gnuplottex</code> package is available in the machine.</p>
  
  <h1>Problem</h1>
  
  <p>Can't get TexStudio to plot a simple graph with <code>gnuplot + pgfplots</code> in <code>latex</code>.</p>
  
  <h1>Problem description</h1>
  
  <p>I'm trying to plot the following with <code>gnuplot</code> in TexStudio:  </p>
  
  <pre><code>1: \documentclass[]{article}
  2: \usepackage{tikz}
  3: \usepackage{pgfplots}
  4: \pgfplotsset{compat=newest}
  5:      
  6: \begin{document}
  7:  
  8:     \begin{tikzpicture}
  9:     \begin{axis}
  10:        \addplot gnuplot[id=sin]{sin(x)};
  11:    \end{axis}
  12:    \end{tikzpicture}
  13: 
  14: \end{document}
  </code></pre>
  
  <p><strong>TexStudio <code>Messages</code>:</strong><br>
  Note the <code>pdflatex</code> path. I've tried with and without the <code>-shell-escape</code> option.</p>
  
  <pre><code> Process started: pdflatex.exe -synctex=1 -interaction=nonstopmode -shell-escape "deleteme".tex
   'gnuplot' is not recognized as an internal or external command, operable program or batch file.
   Process exited with error(s)
  </code></pre>
  
  <p><strong>TexStudio <code>Log</code>:</strong></p>
  
  <pre><code> Line 10: Package pgfplots Error: Sorry, the gnuplot-result file 'deleteme.sin.table' c&gt;.gnuplot' manually on the respective gnuplot file.. gnuplot[id=sin]{sin(x)};
   Line 11: You have an axis with empty range (in direction y). Replacing it with a default range and clearing all plots.
  </code></pre>
  
  <h1>What I want</h1>
  
  <p>Help solve this mystery pls!
  Googling the issue didn't yield much. <code>-shell-escape</code> option was mentioned. Tried it -- didn't work.</p>