Plotting discrete points



On Mon, 2005-01-10 at 05:54, Jaime E. Villate wrote:
> I'd prefer something like this:
> 
> xy:makelist([x,exp(-x*1.0)],x,0,10);
> 
> /* plot with line segments */
> plot2d([discrete,xy]);

I debated between "list" and "discrete". I guess I like "discrete"
better after all. We had two votes for [[x1,y1],[x2,y2]...]. I just
updated the code to allow either
	[discrete,x,y]
or
	[discrete,xy].

> Comments:
>  1- openplot_curves accepts both [[0,0],[1,3],[4,6]] and [0,0,1,3,4,6]
>     to plot the points (0,0), (1,3) and (4,6). It would be nice that
>     plot2d did the same.

I think two options are enough and I don't see the usefulness of 
[x1 y1 x2 y2...]. Do you have a compelling reason to keep the third
option?

>  2- I'm still not convinced that gnuplot is the final solution,

Neither am I. When I first introduced the extra gnuplot material, I
said:

1) Goal: the idea is not to create the ultimate plotting tool for
Maxima. Rather, I have tried to make the maximum functionality available
with the currently available tool (Gnuplot) and minimal effort. Simple
operations should be easy and complex operations should be possible.

>  and I still
>     use openplot most of the time. Removing "gnuplot_curve_styles" from
>     the options would make the syntax more general and the options that were
>     not yet supported by other graphic systems could be silently ignored.

I'm really not interested in changing the options syntax again unless it
is to introduce a radically better plotting system.

--Jim