I am trying to use Latex in my plots. However, if I use plt.rc(\'text\', usetex=True), I get the following error.
plt.rc(\'text\', usetex=True)
Traceback (most recent call last):