completed most of planar plotting