On Jun 7, 11:39 am, dbjohn <[email protected]> wrote:
> > Notice that William's pointA is just (1,1), whereas yours is
> > point((1,1)).    The reason for the unusual error message is that
>
> > sage: line??
>
> > shows that if we get any error from trying to make a 2D line, it
> > assumes you want a 3D line.
>
> Okay it works when I define a point with just the coordinates like you
> said. So is the lesson that when you pass the two points to a line:
> ensure that they are defined by just the coordinates otherwise it will
> think you are trying to make a 3d line which it can't do.
>
> But suppose I want the point to be of a certain color or size, I need
> to use point() like: point((1,1),rgbcolor=hue(0.75),size=100)
>
> And then pass to line() which won't work. I tried calling its

No, that is not possible.  However, you could make the points
separately, and then make a line, and add the two.  You could ensure
that the points are on top using the zorder keyword.  Does that help?


> attributes separately like
>
> pointA = (1,1)
> pointA.size = 100.
>
> Didn't work either.
>
> I notice you also added point like point(pointA), I didn't realise you
> could do that.
>

Yes, because pointA is just a name for (1,1), so to speak.  This is
part of the Python language Sage is built on, and it's definitely
worth the time to learn the very basics (though of course not
necessary to use Sage per se)!

- kcrisman

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to