Resets x range from x linear interpolation of oldmin to oldmax to x linear interpolation from newmin to newmax