I want to use latex in the legend of some plot made using python
I used the following:
import math
import numpy as np
import matplotlib.pyplot as plt
import time
plt.rcParams['text.usetex'] = True
I run the code but I got the message:
Failed to process string with tex because latex could not be found
but I have latex installed on my Mac. In the terminal I checked by typing
which latex
and I got
/Library/TeX/texbin/latex
I'm using "Python 3.8"
Thank you for any help.