Added automatic Y rescaling