Code: Select all
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw[color=blue] plot[id=sin] function{sin(x)} node[right] {$f(x) = \sin x$};
\end{tikzpicture}
\end{document}
--shell-escape --enable-write18
I don't get a plot, only the text. My log file has lines
runsystem(gnuplot test.sin.gnuplot)...executed.
Package pgf Warning: Plot data file `test.sin.table' not found. on input line 7
So it sounds like gnuplot makes a .gnuplot file and pgf is looking for a .table file (right?). If I rename test.sin.gnuplot to test.sin.table and recompile, I get
! Package PGF Math Error: Unknown function `set'.
I've tried editing line 288 of
C:\Program Files (x86)\MiKTeX 2.8\tex\generic\pgf\modules\pgfmoduleplot.code.tex from
set terminal table
to
set table
as some threads have suggested, same result.
gnuplot is in my %PATH%.
Any suggestions?