After resolving the problem on my previous question, I applied to finally install Gnuplot 4.6; and after a successful installation I had to allow the --shell-escape option on TeXworks, so I added a new Typesetting Tool on the Preferences menu, called pdfLaTeX+ShellEscape.
The lines of code inserted into the tool configuration are listed below:
$synctexoption
-undump=pdflatex
--shell-escape
$fullname
The problem is that when I try to compile my MWE (MYname.tex) with the above specified option:
\documentclass{article}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
%
\begin{document}
\begin{tikzpicture}
%
\begin{axis}[no markers,samples=30]
\addplot gnuplot{atanh(x)};
\end{axis}
%
\end{tikzpicture}
%
\end{document}
I get this messge:
! Package pgfplots Error: Sorry, the gnuplot-result file 'MYname.pgf-plot.table'
could not be found. Maybe you need to enable the shell-escape feature? For
pdflatex, this is '>> pdflatex -shell-escape'. You can also invoke
'>> gnuplot <file>.gnuplot' manually on the respective gnuplot file..
See the pgfplots package documentation for explanation.
Type H <return> for immediate help.
...
l.7 \addplot gnuplot{atanh(x)};
?
I am running TeXworks 0.44, and until now it didn't show this kind of stubbornness because I compiled every document without problems.
I did also some research and I found that I could write -enable-write18 but even after this try I get the same errmsg and so I'm stuck again with the plots problem (although I discovered a powerful program like Gnuplot I don't know how to set LaTeX properly).
P.S. : Sorry for the deleted question with the same title, that issue was created by a simple human error.
.gnufile with the name of the.texfile. It may be even a.dotsomething else but it wont beaux,log, and the standardLaTeXones. – dustin Aug 02 '13 at 15:25MYname.pgf-plot.gnuploton the same folder, in addition to the classicauxandlogfiles, but at this point I don't know what to do. – TheVal Aug 02 '13 at 15:29gnudidn't process the file. If you process this file now, you will have the.tableor it may name it a.texfile and then all will work. This happens sometimes with shell escape enabled. It has to do with something you havent set inTeXworksI presume. – dustin Aug 02 '13 at 15:33MYname.pgf-plot.gnuplot, r-click and select wgnuplot program to open the specific extension, after that theMYname.pgf-plot.tablewas created and it all worked like a charm. Now the only question is if I've set the Typesetting tool correctly, because I don't know if I've done some mistake – TheVal Aug 02 '13 at 15:44MYname.pgf-plot.tableI re-compiled my file with the only option-shell-escapeand it finally worked. Thanks to the answers dustin. – TheVal Aug 02 '13 at 15:53shell-escapeto automate the compiling and run enough number of times to get the plot. – texenthusiast Aug 02 '13 at 15:56