在没有乳胶的matplotlib方程标签中使用特殊字符\ ddagger

问题描述 投票:0回答:1

正如标题所说,我想在标题和标签方程中使用matplotlib方程rending(不通过rc选项切换到乳胶rending),因为它更快,我喜欢字体和样式。但是它似乎不支持$ \ ddagger $符号。我收到错误:

Unknown symbol: \ddagger (at char 31), (line:1, col:32)

有趣的是所有其他符号,也是\匕首工作。任何帮助,将不胜感激。

python matplotlib latex
1个回答
1
投票

\ddagger符号有unicode 2021。因此,使用STIX字体集(查找所有符号here的表),您应该能够将其写为

ax.set_title(u"\ddagger $\u2021$")

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.