Scaling on y-axis now working with legend adjusting to the scale factor.