On 02/02/2014 19:16, Herbert Voss wrote:
Hello all,
I have a problem with the following example. It creates the
external data file "tmp.data" with the \directlua call. This
file is then read by \addplot. You can choose any kind of
values, e.g. 4000, 500, or whatever instead of the 5000 steps,
\addplot is missing some of the rightmost data.
For a second run, comment the \directlua call (the data file
is already created by the preceding run). The output is now
correct.
I suppose that the data file is closed too late.
But I am not sure.
Herbert
You can certainly see that the file is not 'right' at the appropriate
place: adding a marker (undefined) control sequence just after the
\directlua line (or indeed after the plot), the final line of the data
file is
1.9607999999998 1.1218274062469
--
Joseph Wright