On Tue, 2010-02-23 at 18:24 +0000, Leo Butler wrote:
> plot2d(...,[gnuplot_preamble,"set terminal postscript; set output
> \"foo.eps\";"]);
>
> appears to require that subsequent calls manually reset the terminal
> to the default. This is not expected behaviour, and I wonder why the
> change was made if it was intended.
It is a bug. I'll investigate it. I made some changes for v 5.20 in the
way gnuplot_preamble is treated to avoid interference with the custom
preamble set up by plot2d.
In the meantime, you can avoid the bug and get the same result with:
plot2d(...,[psfile,"foo.eps"]);
Regards,
Jaime