Ask Your Question

How to draw more than one line in a coordinate?

asked 2011-08-03 04:09:30 +0100

When I use line in Sage. it will draw a line for me, with given points, and connect the point with straight line. but now I want to draw more than one line in a coordinate(to compare with each other). I try my best to do this ,but unfortunately, I failed.


this can draw a line in the coordinate ,but now i want more than one. how can i do it?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2011-08-03 08:53:13 +0100

kcrisman gravatar image

I'm really not sure what you are asking. Are you just asking whether you can do these together?


The best way (so that you have access to them individually still) is this.

L = line([(0,1),(1,2),(2,0),(3,0),(4,2)])
M = line([(0,2),(1,1),(2,3),(3,-1),(4,6)])
L+M # shows them both

But I'm not convinced this is what you want. Incidentally, enumerate is very helpful if you already have the data and just need to put it in this kind of 0,1,2,3,... order.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2011-08-03 04:09:30 +0100

Seen: 217 times

Last updated: Aug 03 '11