Ask Your Question

alexm's profile - activity

2019-09-21 15:12:31 +0200 received badge  Notable Question (source)
2016-12-03 13:32:46 +0200 received badge  Popular Question (source)
2014-01-08 15:12:53 +0200 answered a question How to plot TWO polygons in ONE (2d) graphic?

Wow!

Thx a lot! I tried so many difficult things... and your solution is so easy.

Thank you very much!

2014-01-08 15:11:19 +0200 marked best answer How to plot TWO polygons in ONE (2d) graphic?

According to the Sage tutorial:

You can combine several plots by adding them.

So try:

sage: P = polygon([(0,0), (1,1), (0,1)])
sage: Q = polygon([(1,0), (1,1), (1.5,2)], color='red')
sage: C = circle((0,1), 2)
sage: P + Q + C
2014-01-08 15:11:19 +0200 received badge  Scholar (source)
2014-01-08 15:11:17 +0200 received badge  Supporter (source)
2014-01-08 12:09:50 +0200 asked a question How to plot TWO polygons in ONE (2d) graphic?

Hi! I'd like to plot some Polygons. Plotting every single polygon works fine, but i want to plot two Polygons in one 2d graphic; with different Colors. I tried it with polygon() and polygon2d(), but it seems that they can only plot one polygon. Has anyone here an idea how to solve that?