I am trying to write some variable alpha with a subscript \"mod\" while putting text on one of my plots in matplotlib. I know how to do one-letter or one-number subscripts via d
Short answer: Use curly brackets $\alpha_{mod}$
Longer version: Matplotlib uses LaTeX format for strings. In LaTeX, if you want a subscript to include more than one letter you have to use curly brackets.
import matplotlib.pyplot as plt
ax = plt.gca()
ax.text(2, 2, r'$\alpha_{mod}$', fontsize=10)
y = [2,3,4,5]
x = [1,2,3,4]
plt.plot(x,y)
plt.show()