plotting routines for assignment 1