> When I try this with Maxima 5.28.0 as installed by the Windows
> installer, I get an error message from Gnuplot. The maxout.gnuplot file
> contains "set terminal x11" which is not a Windows terminal type. I see
> that draw.lisp determines the system type from *WINDOWS-OS* which in
> turn is derived from *AUTOCONF-WIN32* and the value of that is
> "@win32@", not "true" or "false" as expected. So I guess the value of
> *AUTOCONF-WIN32* was not assigned correctly during the build?
>
> If I enter :lisp (setq *autoconf-win32* "true") before load(draw), then
> I get a picture of a spheroid, as expected.
>
>
Oddly, this does not seem to work. First some precision : wxMaxima 5.28
on Windows 7 64 bits, in case it's important.
I get this :
(%i2) :lisp (setq *autoconf-win32* "true")
true
(%i2) load(draw);
(%o2) "C:/app/Maxima-5.28.0/share/maxima/5.28.0/share/draw/draw.lisp"
(%i3) :lisp *windows-OS*
NIL
Then draw2d(explicit(x,x,0,1))$ hangs Maxima (it starts gnuplot as I can
see in task manager).
And maxout.gnuplot has obviously "set terminal x11".
Now, if I cheat and do, after the "load(draw)",
:lisp (setq *windows-OS* T)
draw2d(explicit(x,x,0,1))$
THen I get a plot as expected, and maxout.gnuplot has "set terminal
windows".
But it's not all : when I close the plot windows, Maxima is still hanged
up, and
gnuplot is not closed in the task manager.
However, in Maxima 5.27, with
(%i1) load(draw);
(%o1) "C:/app/Maxima-5.27.0/share/maxima/5.27.0/share/draw/draw.lisp"
(%i2) draw2d(explicit(x,x,0,1))$
The task manager shows no gnuplot process, only a cmd.exe process. And
when I
close the plot window, Maxima is usable.
Now, I don't really understand why *windows-OS* is initialized with NIL
with your trick,
or why there is a gnuplot process in one version and noe in the other.
I must say my lisp knowledge is very, very limited ;-)
Thanks for your help.
Jean-Claude Arbaut