import matplotlib.pyplot as plt plt.text(0.1, 0.5, r"$a = \sin(\phi) \text{ such that } \phi = \frac{x}{y}$") plt.text(0.1, 0.3, r"$\text{dashes (-) are retained}$")