[OS X TeX] Gnuplot call from within pgfplot

Victor Ivrii vivrii at gmail.com
Fri Sep 13 13:50:52 CEST 2013


You may want to look at pgf/tikz as these packages also call gnuplot

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)



On Fri, Sep 13, 2013 at 7:08 AM, Joshua Smith <smithjh at lafayette.edu> wrote:

> All,
>
> 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:
>
> \begin{tikzpicture}
>   \begin{axis}[xmin=0, xmax=0.011, ymin=0, ymax=1.1, scaled x ticks=base
> 10:3, xtick scale label code/.code={}]
>     \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))};
>   \end{axis}
> \end{tikzpicture}
>
> 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:
>
> ./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..
>
> WIthin TeXShop, the engine is set to be
>
> pdflatex --file-line-error --synctex=1 --shell-escape
>
> so, why is gnuplot not being called automatically?
>
> Thanks,
> Josh
>
>
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
> List Archive: http://tug.org/pipermail/macostex-archives/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex
>
>


-- 

Victor Ivrii
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/macostex-archives/attachments/20130913/14d3dd91/attachment.html>


More information about the macostex-archives mailing list