I have created fractional values for my x tick labels, but the fractions look a little cramped to me. Is there a way to increase the vertical spacing?
import matplotlib.pyplot as plt
fig, ax = plt.subplots()
ax.set_xlim(0, 10)
ax.set_xticklabels(
['$\\frac{{{0}}}{{{1}}}$'.format('M', x) for x in ax.get_xticks()],
fontsize=12)
plt.show()