The plotarea or areaplot command finds the (signed) area of a polygon.
plotarea(polygon(1,(1+i)/2,1+i)) |
The fill color can be changed as a local feature (see 26.3.2) and the position of the legend can be changed (see Section 26.3.3).
plotarea(polygon(1,1+i,(1+i)/2),display=red+quadrant2) |