Italics in texts using Matplotlib

plt.title(r"$\mathit{text in italics}$")

Related:

References: