<div dir="ltr">You may want to look at pgf/tikz as these packages also call gnuplot<div><br></div><div style>Also try to find if and where foo.table is created when the call comes from TeX (it is not clear that you cannot call gnu plot, may be just .table is created either in the wrong place or too late and your tex just does not wait for it)</div>
<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Sep 13, 2013 at 7:08 AM, Joshua Smith <span dir="ltr"><<a href="mailto:smithjh@lafayette.edu" target="_blank">smithjh@lafayette.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">All,<div><br></div><div>I am trying to use pgfplots to create a figure, and I am calling gnuplot to evaluate a specified function to create the data, as follows:</div>
<div><br></div><div>\begin{tikzpicture}</div><div>  \begin{axis}[xmin=0, xmax=0.011, ymin=0, ymax=1.1, scaled x ticks=base 10:3, xtick scale label code/.code={}]</div><div>    \addplot[\red, very thick] gnuplot[id=convection10, domain=0:0.010, samples=100] {(cosh(sqrt(4 * 100 / 14 / 0.005) * (0.010 - x)) + (100 / sqrt(4 * 100 / 14 / 0.005) / 14) * sinh(sqrt(4 * 100 / 14 / 0.005) * (0.010 - x))) / (cosh(sqrt(4 * 100 / 14 / 0.005) * 0.010) + (100 / sqrt(4 * 100 / 14 / 0.005) / 14) * sinh(sqrt(4 * 100 / 14 / 0.005) * 0.010))};</div>
<div>  \end{axis}</div><div>\end{tikzpicture}</div><div><br></div><div>I have installed gnuplot and I can call it manually from a Terminal window.  However, when I compile my TeX file using TeXShop, I get the error:</div>
<div><br></div><div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 11px/normal Courier">./09-13-2013 Main.tex:349: Package pgfplots Error: Sorry, the gnuplot-result file '"09-13-2013 Lecture Notes.convection10.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..</div>
</div><div><br></div><div>WIthin TeXShop, the engine is set to be</div><div><br></div><div>pdflatex --file-line-error --synctex=1 --shell-escape</div><div><br></div><div>so, why is gnuplot not being called automatically?</div>
<div><br></div><div>Thanks,</div><div>Josh</div></div><br><br>
----------- Please Consult the Following Before Posting -----------<br>
TeX FAQ: <a href="http://www.tex.ac.uk/faq" target="_blank">http://www.tex.ac.uk/faq</a><br>
List Reminders and Etiquette: <a href="http://email.esm.psu.edu/mac-tex/" target="_blank">http://email.esm.psu.edu/mac-tex/</a><br>
List Archive: <a href="http://tug.org/pipermail/macostex-archives/" target="_blank">http://tug.org/pipermail/macostex-archives/</a><br>
TeX on Mac OS X Website: <a href="http://mactex-wiki.tug.org/" target="_blank">http://mactex-wiki.tug.org/</a><br>
List Info: <a href="https://email.esm.psu.edu/mailman/listinfo/macosx-tex" target="_blank">https://email.esm.psu.edu/mailman/listinfo/macosx-tex</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><br>Victor Ivrii</div>
</div>