more graphing for xieandleo2004
added and test subdivide_into_elements