completed plotting scripts