How do I write text in subscript in the axis labels and the legend?

Viewed 70297

I have the following axis labels and legend.

plt.ylabel("ratio_2")
plt.xlabel("n_1")
plt.legend(('alpha_1','alpha_2' ), loc = 'best',shadow = True)   
2 Answers
Related