Adapt scaleTrans based on ymin/ymax

scaleTrans will now adjust (not just [-1.0,1.0]) in accordance with
ymin and ymax.