newgraph xaxis min 0 max 10 size 5 hash_labels fontsize 16 yaxis min 0 max 10 size 5 hash_labels fontsize 16 (* Draw a red trapezoid -- setting both the fill and color to be red means that the entire trapezoid, and not just the interior, will be red. *) newline poly pcfill 1 0 0 color 1 0 0 pts 1 1 3 1 2.5 2 1.5 2 (* Draw a big black square *) newline poly pfill 0 pts 3 3 10 3 10 10 3 10 (* Draw a thick yellow triangle with a purple, striped interior inside the black square *) newline poly linethickness 5 color 1 1 0 pcfill 1 0 1 ppattern stripe 60 pts 4 4 8 4 6 6 (* Draw a blue triangle with a thick border no fill *) newline poly linethickness 10 color 0 0 1 pfill -1 pts 4 9 6 5 8 8