Read the value of xlabel as a parameter to the function