What is the character or chain of characters in the code of matplotlib text field to break the line so as to avoid having too long code lines?
for example:
plt.text(0.5, 0.5,
r'$\mathsf{sin\left(\frac{\pi}{180} f_1 \theta + \varphi_1\right) + B sin\left(\frac{\pi}{180} f_2 \theta + \varphi_2\right)}$'
using "\" to break the long line yields in printing in unformatted text.