r is an input parameter. Resetting it in the line r = 0.1, was probably forgotten to be removed.
I have also seen the same effect with parameter theta. But I doubt if theta should be really an input parameter. In which circunstance the user would want to set it differently? In any case, we should remove either the input parameter theta or the setting of theta inside the function.
I will look better at this function later... One of the parameter is the white buffer (or halo) behind the label. I will fix its size depending on the label size.
r is an input parameter. Resetting it in the line r = 0.1, was probably forgotten to be removed.
I have also seen the same effect with parameter theta. But I doubt if theta should be really an input parameter. In which circunstance the user would want to set it differently? In any case, we should remove either the input parameter theta or the setting of theta inside the function.