A note on graphics



Mario,

I looked at the examples of new plotting capabilities which you posted,
> http://www.telefonica.net/web2/biomates/maxima/gpdraw

I have just some minor quibbles. On the whole it looks terrific to me.

(1) I'd prefer to rework plot2d instead of creating a separate
function gpdraw2d.
It would be a mess to have both old and new plotting functions.
It would be OK with me to cut out plot2d, but if so I would rename
gpdraw2d to draw2d or something else not specific to Gnuplot.

(2) I'd like to see a function which adds more stuff to an existing plot,
let's say plot2d_more or something. That way the user need not think
of everything before calling plot2d just once.

(3) I'd like to see a function which replots the most recent plot.
E.g. if you close the plot window and then you want to see the
same stuff again. Or you want the same stuff but output to a
file instead of shown on the screen.

(4) I think I'd like to see plotting functions return a description of
the current plot, maybe as a noun expression 'plot2d(x, y, z, ...).
At present plot2d returns an empty string; pretty much anything
would be more useful.


As I was saying, this is great work, and I hope that we can come
to agreement on how to merge it into Maxima soon.

best
Robert