python matplotlib中顯示latex數學公式

matplotlib的text文本實際上是支持latex語法的,要顯示latex公式很簡單:python import matplotlib.pyplot as plt ax=plt.subplot(111) ax.text(0.1,0.8,r"$\int_a^b f(x)\mathrm{d}x$",fontsize=30,color="red") ax.text(0.1,0.3,r"$\sum_
相關文章
相關標籤/搜索