Say, for example, this is the plot I want to make with 'L' in 'LEGEND' in a different font.
import matplotlib.pyplot as plt
plt.plot([1,2,3],[4,5,6])
plt.legend(['LEGEND'])
plt.show()
Currently, I Latex out the text I want to be unaffected and change the font for the whole function. Like this.
import matplotlib.pyplot as plt
import matplotlib.font_manager as fm
font_name = fm.FontProperties('Rage Italic').get_name()
plt.plot([1,2,3],[4,5,6])
plt.legend(['L$EGEND$'],prop={'family':font_name, 'size':14})
plt.show()
Is there any simpler way to do this, because, in my actual project, I had to do something like this $($l$/w)_{sub} = 1$ to change the font of l throughout a code which was pretty cumbersome.



