So I know that if I want to use a LaTeX string in my plots I should instead of for example "sin(x)", I should use r"\sin(x)".
But if I have a = "\sin(x)" and I now want to use this a as my plot label, how can I convert it to r"\sin(x)"? When I do type(r"\sin(x))" is just says string.

