无法在 python3 中的 matplotlib.pyplot 中渲染乳胶
Can't render latex in matplotlib.pyplot in python3
虽然像 matplotlib.pyplot.xlabel(r'Wavelenghth [$\mu$m]')
这样的东西在 python2 中有效,但是当我在 python 中使用它时出现错误 3
TypeError: startswith first arg must be str or a tuple of str, not
bytes
有人知道这是什么问题吗?是我的乳胶安装吗?!
我可以使用 rc('text', usetex=False) 解决问题,这显然使 matplotlib 使用内部数学文本而不是我的默认乳胶安装。
我仍然无法弄清楚 OS Latex 安装失败的原因。
虽然像 matplotlib.pyplot.xlabel(r'Wavelenghth [$\mu$m]')
这样的东西在 python2 中有效,但是当我在 python 中使用它时出现错误 3
TypeError: startswith first arg must be str or a tuple of str, not bytes
有人知道这是什么问题吗?是我的乳胶安装吗?!
我可以使用 rc('text', usetex=False) 解决问题,这显然使 matplotlib 使用内部数学文本而不是我的默认乳胶安装。
我仍然无法弄清楚 OS Latex 安装失败的原因。