Change code for x-scaling

Changed the x-scaling code on plots 2 and 4 so they handle the
non-linear aspect of the time intervals