Matplotllib and Xelatex
问题 I tried to find the answer for my question for some time now but could not come up with something that works for me. My question is: How can you use Xelatex to compile text in Matplotlib? I know that there is this page: http://matplotlib.org/users/pgf.html However, I could not come up with something that would work. What I got up to now: import matplotlib as mpl mpl.use("pgf") ## TeX preamble preamble = """ \usepackage{fontspec} \setmainfont{Linux Libertine O} """ params = {"text.usetex":