import matplotlib.pyplot as plt
fig, ax = plt.subplots()
ax.set(title='This is an expression $e^{\\sin(\\omega\\phi)}$', xlabel=
    'meters $10^1$', ylabel='Hertz $(\\frac{1}{s})$')
plt.show()
Superscript in Python plots