[TxMt] latex pgfplots cannot find gnuplot tables

Graham Smith myotisone at gmail.com
Tue Sep 2 07:31:33 UTC 2008


I have asked about this in the obvious places (pgf help forum and
comp.text.tex) and after some initial help, the help has dried up. As
this is going to be a specifically Mac users here, maybe the problem
may be more obvious.

When I try and compile this code (from the manual):

\documentclass[a4paper]{article}
\usepackage{pgfplots}
\begin{document}

\begin{tikzpicture}%
\begin{axis}[
		xlabel=$x$,
		ylabel=$\sin(x)$,
		name=an axis,
]
	\addplot plot [id=sin] function{sin(x)};
\end{axis}
\end{tikzpicture}%

\end{document}

I get these errors:


Latex Error: ./PDFPlotTrial2.tex:11 Package pgfplots Error: Sorry, the
gnuplot-result file 'PDFPlotTrial2.sin.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
PDFPlotTrial2.sin.table' manually..

! Package pgfplots Warning: You have a plot with empty range.
Replacing it with default and clearing plots.

Latex Error: ./PDFPlotTrial2.tex:13 Extra }, or forgotten \endgroup.

Latex Error: ./PDFPlotTrial2.tex:13 Missing } inserted.

Latex Error: ./PDFPlotTrial2.tex:13 Extra }, or forgotten \endgroup.

Latex Error: ./PDFPlotTrial2.tex:13 Missing } inserted.

Latex Error: ./PDFPlotTrial2.tex:15 LaTeX Error: \begin{tikzpicture}
on input line 5 ended by \end{document}.

I have run  pdflatex --shell-escape PDFPlotTrial2.tex from terminal
(which seemed to work as I got pages of text appearing with no obvious
error messages) and I have upgraded to version 2 of pgf. GNUPlot was
installed with fink and runs OK from typing gnuplot in terminal.

I am now stuck, and no idea what to try next. I am pretty new to this
so it could well be something so obvious that no one is suggesting it.
 Can anyone help.

Many thanks,

Graham



More information about the textmate mailing list