[Maxima] [draw2d] How to selectively connect an arbitrary number of points
Stavros Macrakis
macrakis at alum.mit.edu
Tue May 22 09:36:07 CDT 2012
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]]));
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.math.utexas.edu/pipermail/maxima/attachments/20120522/cc23fece/attachment-0001.html>
More information about the Maxima
mailing list