separated plotting routines into different functions, added analytically-derived data comparison