It IS a \write18 issue, so you need to call pdflatex with --shell-escape.<br clear="all"><div><br></div><div><br></div>Sigmund<br>
<br><br><div class="gmail_quote">On Sun, May 1, 2011 at 21:21, Ovi Chitayat <span dir="ltr"><<a href="mailto:ovadia@pacbell.net">ovadia@pacbell.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">Hi,</span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">I have a simple gnuplot ‘plot’ command within a tikzpicture
block as follows</span></font></p>
<p style="margin:0pt;margin-bottom:.0001pt"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"> </span></font></p>
<p style="margin:0pt;margin-bottom:.0001pt"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">\begin{tikzpicture}[domain=-5:5]</span></font></p>
<p style="margin:0pt;margin-bottom:.0001pt"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">\draw[arrows={-latex}]
(-5,0) -- (6,0) node[below] {$x$};</span></font></p>
<p style="margin:0pt;margin-bottom:.0001pt"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">\draw[arrows={-latex}]
(0,-1.2) -- (0,2.5) node[above] {$f(x)$};</span></font></p>
<p style="margin:0pt;margin-bottom:.0001pt"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">\draw[thick, color=blue, samples=100]
plot[id=2] function{x} node[above] {$f(x) = x$};</span></font></p>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">\end{tikzpicture}</span></font></p>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"> </span></font></p>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">This segment *<b><span style="font-weight:bold">IS</span></b>* able to
generate the <job>.2.gnuplot so I know gnuplot does execute (not a
\write18 issue).</span></font></p>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">When I use the gnuplot interactive program (windows xp, gnuplot V 4.2
patch 4) and ‘load’ the</span></font></p>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><job>.2.gnuplot file, the corresponding <job>.2.table *<b><span style="font-weight:bold">IS</span></b>* created in the same directory that
would have contained the file generated by my code.</span></font></p>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"> </span></font></p>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">The set of packages used is</span></font></p>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"> </span></font></p>
<p style="margin:0pt;margin-bottom:.0001pt"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">\usepackage{verbatim}</span></font></p>
<p style="margin:0pt;margin-bottom:.0001pt"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">\usepackage{amsmath} </span></font></p>
<p style="margin:0pt;margin-bottom:.0001pt"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">\usepackage{amssymb}</span></font></p>
<p style="margin:0pt;margin-bottom:.0001pt"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">\usepackage[pdftex]{graphicx}</span></font></p>
<p style="margin:0pt;margin-bottom:.0001pt"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">\usepackage{tikz}</span></font></p>
<p style="margin:0pt;margin-bottom:.0001pt"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">\usepackage[americaninductor]{circuitikz}</span></font></p>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"> </span></font></p>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">I have searched long and wide and could not find a clue.</span></font></p>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">Please help.</span></font></p>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">Ovi</span></font><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"></span></font></p>
</div>
</div>
</blockquote></div><br>