Plot options foo=bar vs [foo, bar]



On Fri, 2006-06-09 at 09:18 -0600, Robert Dodier wrote:

> http://maxima.sourceforge.net/wiki/index.php/New%20Version%20of%20Openmath
> I see you suggest changing the way to specify plot options, e.g.,
> 
>   plot2d(f(x), x=a:b, plot_format=openmath)
> 
> I'm in favor of this.
Yes. I got the idea from you, in a message that you sent me when I
joined the project. I've seen the same proposal in the wish-list wiki
page (I guess you wrote that too).

What do you think about x=a:b for intervals? I think something such as
x, a, b gets confusing when you have several options.

> Or we could omit the test for MLIST or MEQUAL entirely and then the
> code would work for both.
I would prefer to accept only MEQUAL for options and MLIST only for
lists of numbers, which are taken to be the coordinates of a set of
points to be plotted, without having to use the "discrete" keyword.
For example, to plot sin(x) and an equilateral triangle:

plot2d(sin(x), [[0,0],[2,2],[1,sqrt(3)]], x=0:2*%pi, style=lines)

Jaime