How can I plot two polygons in one graph in maple? I currently have:
display(polygon([[0, 0], [2, 0], [1,1]],
color = red),
scaling = constrained);
But this only plots one polygon, in this case it is a triangle, but i want to have two triangles next to each other?
You could define the polygons first and then display them:
g1 := polygon([[0, 0], [2, 0], [1,1]], color = red);
g2 := polygon([[0, 0], [4, 0], [1,1]], color = blue);
display(g1, g2);