[draw2d] How to selectively connect an arbitrary number of points



Stefano,

Glad you found the solution to your original problem.

A few remarks which might be helpful to you:

* To convert from M:matrix([1,2],[2,3]) to [[1,2],[2,3]] etc., you can use
args(M) -- but why are you representing these as a matrix in the first
place (rather than just a list of pairs)?

* Strings in Maxima are atomic, and functions like 'flatten' don't do
anything to them.  It *is* possible to parse strings using parse_string,
but it is almost always a bad idea to construct something as a string and
then parse it -- better to construct it directly as a structured object.

              -s

On Tue, May 22, 2012 at 9:29 AM, Stefano Ferri <ferriste at gmail.com> wrote:

> draw2d(  point_type = dot,
>              line_width =2,
>              color         = blue,
>              points_joined = true,
>              points([[0,1],[1,2]]),points([[4,4],[5,6]]));
>