Added recalculateYMax option