Added plotting routines for 2D graphs