cl-plplot



Hello,

> 
> (%i1) load(descriptive)$
> (%i2) dataplot(apply(matrix,[[-1,2],[3,7],[5,3]]), joined=true,
>       axisname=["x","y"])$
> 
> (%i3) load(graph2d)$
> (%i4) graph2d([[-1,2],[3,7],[5,3]], [nolines,0], [xaxislabel,"x"],
>       [yaxislabel,"y"])$
> 

Following the sintactic style of my previous posts, what about this?

x:scene(
    discrete([[-1,2],[3,7],[5,3]],
             xaxislabel = "x",
             yaxislabel = "y",
             lines = true,
             colorpoints = red,
             colorlines = blue),
    maintitle = "Jaime's plot",
    bgcolor = yellow) $

plot(x, with = xmaxima, device = png) $

or with defaults:

plot(scene(discrete([[-1,2],[3,7],[5,3]]))) $


Note that in the previous example, xaxislabel, yaxislabel, lines,
colorpoints, and colorlines are options associated to object discrete,
whereas maintitle, and bgcolor are associated to object scene. I like to
define options with the = symbol, since it only needs one key stroke.


> we should agree on a common syntax and make a single program that
> will produce either gnuplot or openmath with similar appearance.

or plplot, or...

Best wishes.
-- 
Mario Rodriguez Riotorto
www.biomates.net