added script which plots x value on graph