[draw2d] How to selectively connect an arbitrary number of points
Subject: [draw2d] How to selectively connect an arbitrary number of points
From: Stefano Ferri
Date: Tue, 22 May 2012 16:55:15 +0200
2012/5/22 Stavros Macrakis <macrakis at alum.mit.edu>
>
>
> * 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)?
>
Well, actually this derives from the input syntax of a numerical code for
structural analysis I had written in Matlab some time ago, where inputs was
matrices... The points I need to plot can be a lot, and are nodes of
structures, while lines are beams, so when I started coding this program in
Maxima I thought that, from an user point of view, who is most likely using
wxMaxima, it was better to enter and see its input in a better ordered
structure (a matrix) raher than in a list. Indeed, a list would be better
to handle in the code.
Thanks for the hint about args(), it will be useful to improve my code.
Stefano
>
> -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]]));
>>
>
>