【发布时间】:2020-11-29 01:37:18
【问题描述】:
我正在尝试用 Python 绘制以下乳胶公式:
latex = '\\{[\\Delta+q]-\\iota\\}+\\pi'
使用以下代码
plt.text(0.0, 0.0, latex, fontsize=14)
ax = plt.gca()
ax.axes.get_xaxis().set_visible(False)
ax.axes.get_yaxis().set_visible(False)
plt.show()
但它失败了
RuntimeError: latex was not able to process the following string:
b'\\\\{[\\\\Delta+q]-\\\\iota\\\\}+\\\\pi'
如何解决?
【问题讨论】:
标签: python matplotlib latex