* generate a function with axis= option