writing 'mouse interactive' routines to extend draw, plot2d, etc.



On Dec 8, 2007 2:01 PM, S. Newhouse <sen1 at math.msu.edu> wrote:

>  There could be a command switch in draw which would escape to a shell,
> open a window for keyboard interaction, etc.  Perhaps a certain key
> combination (e.g. 'tw' for 'terminal window)  would open a terminal
> window which would feed other commands to maxima and or gnuplot.

You can send commands to gnuplot from maxima using gnuplot_replot:

(%i2) load(draw)$
(%i3) draw3d(explicit(x^2-y^2, x, -4, 4, y, -4, 4))$
(%i4) gnuplot_replot("set pm3d; unset surf; unset colorbox");

(gnuplot window is updated with new settings)

(%i5) gnuplot_replot("set multiplot")$

(gnuplot will now keep old plots)

(%i6) draw3d(explicit(abs(x-y), x, -3, 3, y, -3, 3))$

HTH

-- 
Andrej