various plot2d issues



On 4/4/07, Stavros Macrakis <macrakis at alum.mit.edu> wrote:

> > Maxima makes a title for Gnuplot via stringout(expr) and the
> > presence of the single quote confuses Gnuplot. Probably any
> > generated strings should be quoted or sanitized somehow.
>
> Phew!  I was worried there was some eval weirdness.  Yes, quoting the
> strings seems like a good idea....

At present it appears the title string is enclosed in double quotes
(at least for Gnuplot output, didn't check others) so that reduces
the problem somewhat. The particular examples shown before
>    plot2d('( if x<1 or x>2 then sin(x) else 'und), [x,0,3]);
>    plot2d( lambda([x],if x<1 or x>2 then sin(x) else 'und), [x,0,3]);
should succeed with current cvs plot2d.

FWIW
Robert