Maxima 5.25.1 on Mac gnuplot problem - no window



El mi?, 30-11-2011 a las 14:13 +0000, Jaime Villate escribi?:
> On 11/30/2011 12:53 PM, Alexander Hansen wrote:
> > the draw3d(...) command above works,_BUT_  it overrides my gnuplot
> > environment setting and plots in an X11 window.  If Javier and Hermann
> > don't have X11 support in their gnuplot, that might explain what's
> > going on.
> >
> > The plot3d(...) command plots in an AquaTerm window, as per my
> > environment settings.
> Hi,
> in plot2d and plot3d, if the user does not change the default gnuplot 
> terminal,
> the gnuplot preamble will start with the command "set term pop", which
> is supposed to reset the terminal to the default used for the system.
> That's how we manage to use AquaTerm in the Mac, X11 or wxt in Linux,
> and whatever Windows or other systems like.
> If Mario is reading this thread, he might be interested in using the
> same method in draw and draw3d.
> 
> Regards,
> Jaime

Hello, and excuse me for my late response.

I have looked into this question in the past, but I couldn't find a
solution without breaking the 'dimensions' option; with it, it is
possible to control the canvas size, which must be declared just when
the terminal is set. I think it is not possible to set the canvas
dimensions afterwards. (If I am mistaken, and someone knows how to do
that, please let me know.) Therefore, 'draw' needs to set the terminal
itself.

I understand that it's not comfortable to type terminal=aquaterm
everytime someone needs a plot in Mac, but it can be a bit painless
typing 

load("draw")$
set_draw_defaults(terminal=aquaterm)$

only at the beginning of the session.

There is at least one way to let Maxima know whether it's running under
Linux or Windows. If it were also possible to know if it's running on
Mac, 'draw' could set terminal aquaterm automatically.

--
Mario