Matplotlib 使用Xeletex代替LaTeX在交互式窗口中格式化标签
此Python代码给出了一个错误Matplotlib 使用Xeletex代替LaTeX在交互式窗口中格式化标签,matplotlib,pdflatex,xelatex,Matplotlib,Pdflatex,Xelatex,此Python代码给出了一个错误 import matplotlib matplotlib.rcParams['text.usetex'] = True matplotlib.pyplot.text(0,0,'π') 堆栈跟踪(loongish,现在省略)通知我导致失败的外部命令是 latex -interaction=nonstopmode --halt-on-error /home/.../.cache/matplotlib/tex.cache/....tex 在我的Debian系统上,
import matplotlib
matplotlib.rcParams['text.usetex'] = True
matplotlib.pyplot.text(0,0,'π')
堆栈跟踪(loongish,现在省略)通知我导致失败的外部命令是
latex -interaction=nonstopmode --halt-on-error /home/.../.cache/matplotlib/tex.cache/....tex
在我的Debian系统上,latex确实是pdflatex。为了得到我想要的东西,我应该能够调用Xeletex,但是afaik没有配置项告诉Matplotlib这样做
如何让Matplotlib调用Xeletex而不是latex(又名pdflatex)呢
注释:
/usr/lib/python3/dist-packages/matplotlib/texmanager.py
inputenc
包来完成我的示例中的工作,但这只是一个示例,我真的想使用xelatex
做一些其他的事情@哦,我对我的问题做了一个编辑:我想使用一个交互式后端。对不起,我最初的提问方式有误导性。如果可以在交互式窗口中使用
pgf
后端格式化标签等,我想知道如何操作,因为我无法让它工作。