当需要使用
LaTeX时
matplotlib,我将以下内容添加到python脚本中(+其他用于调试信息的命令)
import matplotlib.pyplot as plt plt.rc('text', usetex=True) plt.rc('text.latex', preamble=r'usepackage{amsmath} usepackage{foo-name} `...') matplotlib.verbose.level = 'debug-annoying'在这里进行绘图的命令



