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_
相关文章
相关标签/搜索