wgnuplot bug?



On 1/27/07, sen1 at math.msu.edu <sen1 at math.msu.edu> wrote:
> Hello,
>
> In linux the following commands work as expected.
>
> (%i1) my_ps_preamble:
>    "set terminal postscript; set output 'output.ps' ";
> (%o1)          set terminal postscript; set output 'output.ps'
> (%i2) ps_output: [gnuplot_preamble, my_ps_preamble];
> (%o2) [gnuplot_preamble, set terminal postscript; set output
>    'output.ps' ]
> (%i3) plot2d(x^2,[x,0,1],ps_output);
> (%o3)
> (%i4) system("ls output.ps");
> output.ps
> (%o4)                                  0
>
> The file "output.ps" is created, and one can continue--using maxima,
> displaying, printing, etc.
>
> In Win_XP, Xmaxima hangs after  the command (%i3).
>
> The culprit is "wgnuplot.exe".
>
> If I kill the process, then I can continue as expected.
>
> Unless this program is killed, I can't even diplay "output_ps".
>
> Do others have this problem?  Is there a workaround?
>
> What do people who use Win_XP use to plot with plot2d?

On windows you can not create a ps file only by setting up
gnuplot_preamble plot option. This is because of the way gnuplot is
called. You need to use appropriate plot options.

plot2d(x^2, [x,-1,1], [gnuplot_term, ps], [gnuplot_out_file, "output.ps"]);

You can use gnuplot_preamble for additional settings for gnuplot but
at least the terminal must be set by gnuplot_term.

Andrej