Python Pyx 绘图 : Using\mathbb in axes label of plot

标签 python tex pyx

我正在 PyX 中绘制图。

获取(LaTex语言)

\mathrm{a}

你使用

\rm{a}

(PyX 语言)。

我想要(LaTex 语言)

\mathbb{a}.

如何用 PyX 语言做到这一点?尝试

\bb{a}

给出错误消息。

最佳答案

您需要通过以下方式启用 LaTeX

text.set(text.LatexRunner)

默认情况下 PyX 使用纯 TeX。

关于Python Pyx 绘图 : Using\mathbb in axes label of plot,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47872899/

相关文章:

python - 将字典附加到 mysql 表时出错

python - QtDesigner for Python 中的文件菜单

vim - Latex 和 Vim 的使用

python - 实时数据帧图

python - 如何计算 Pandas 中的逆累积和

unicode - 什么 LaTeX 命令会创建一个破折号?

r - 我得到 'Error: '\U' used without hex digits in string starting ""C :\U"' when starting R

尽管代码很好,但使用 Pyx 模块时出现 Python 错误

python - 如何在 Python PyX 中隐藏轴文本