Handle marking and plotting polygons