I'm running WinShell under Windows and I was wondering if anyone could help me call Gnuplot 'plot' command directly from LaTeX source?
e.g.
Code: Select all
plot sin(x)/x
Thanks
Code: Select all
plot sin(x)/x
OKtorbjorn t. wrote:pgfplots can even use gnuplot to compute the coordinates.
Code: Select all
\addplot gnuplot[id=sin]{sin(x)};
Code: Select all
pdflatex --enable-write18 document.tex
Code: Select all
-synctex=-1 "%s.tex" pdflatex --enable-write18 document.tex
Code: Select all
pgfPlots.tex(20): Error: Package pgfplots Error: Sorry, the gnuplot-result file 'pgfPlots.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 <file>.gnuplot' manually on the respective gnuplot file..
I can't remember that I told you to insert exactly what I suggested. What I told you was only to supplement the command line arguments for the compiler with the --enable-write18 switch.psionman wrote:[…] I have changed the pdfLatex cmdLine in WinShell as suggested. This now reads[…]Code: Select all
-synctex=-1 "%s.tex" pdflatex --enable-write18 document.tex
Code: Select all
-synctex=-1 --enable-write18 "%s.tex"