[OS X TeX] pgf and gnuplot with TeXShop

Victor Ivrii vivrii at gmail.com
Mon Jun 4 01:33:52 CEST 2007


On 6/3/07, Amaury Adon <amaury.adon at laposte.net> wrote:
> HEllo
> This is y first message in this list, so I ope you will apologize me
> if some points have been already treated.
>
> I use the latest TeXShop beta and i'm trying to plot somme functions
> using pgf/tikz and gnuplot.
>
> I've Installe Aquaterm, gnuplot 4.2.0 and all of this work like a
> charm in a terminal window.
>
> However, when I try to make it work through TexShop, I got somme
> error messages.
>
> In order to make it more consistent, ths is the minimal code I use
> for testing purpose
>
> \begin{tikzpicture}[domain=0:4,x=2cm,y=2cm]
> \draw[very thin,color=gray] (-0.1,-1.1) grid (3.9,3.9);
> \draw[->] (-0.2,0) -- (4.2,0) node[right] {$x$};
> \draw[->] (0,-1.2) -- (0,4.2) node[above] {$f(x)$};
> \draw[color=red] plot[id=x] function{x} node[right] {$f(x) =x$};
> \draw[color=blue] plot[id=sin] function{sin(x)} node[right] {$f(x) =
> \sin x$};
> \draw[color=orange] plot[id=exp] function{0.05*exp(x)} node[right] {$f
> (x) = \frac{1}{20} \mathrm e^x$};
> \end{tikzpicture}
>
> and the error message
>
> set terminal table; set output ""test gnuplot tikz".x.table"; set
> format "%.5f"

Code is correct, so possible causes are

Do you have gnuplot installed?
Have you installed AquaTerm?
Do you run latex with --shell-escape?


>                                   ^
> cannot open file; output not changed
> "test gnuplot tikz.x.gnuplot", line 1: util.c: No such file or directory
>
>
> set terminal table; set output ""test gnuplot tikz".sin.table"; set
> format "%.5f"
>                                   ^
> cannot open file; output not changed
> "test gnuplot tikz.sin.gnuplot", line 1: util.c: No such file or
> directory
>
>
> set terminal table; set output ""test gnuplot tikz".exp.table"; set
> format "%.5f"
>                                   ^
> cannot open file; output not changed
> "test gnuplot tikz.exp.gnuplot", line 1: util.c: No such file or
> directory
>
>
>
> Package pgf Warning: Plot data file `"test gnuplot tikz".x.table' not
> found. on
> input line 191.
>
>
> Package pgf Warning: Plot data file `"test gnuplot tikz".sin.table'
> not found.
> on input line 192.
>
>
> Package pgf Warning: Plot data file `"test gnuplot tikz".exp.table'
> not found.
> on input line 193.
>
>
> Obviously, I've tried to produce those missing file trough the shell
> but it only works with teh following
>
> set table "test gnuplot tikz.sin.table"; set format "%.5f"
>
> It seems like the command passed to gnuplot by gf are not valid and
> the test gnuplot tikz.sin.gnuplot file is not up to date.
>
> Does someone have ever encounter such problem ?
>
> Does anyone have a solution ?
>
>
> Many thanks
> Amaury
>
>
> ------------------------- Helpful Info -------------------------
> Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
> TeX FAQ: http://www.tex.ac.uk/faq
> List Archive: http://tug.org/pipermail/macostex-archives/
> List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/
>
>
>


-- 
========================
Victor Ivrii, Professor, Department of Mathematics, University of Toronto
http://www.math.toronto.edu/ivrii

------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/





More information about the macostex-archives mailing list