plotting position time graph