大胆一些但不是所有字符的字符
是否有可能以粗体字母有一些轴标题的字母?我在文档中找不到任何东西,但想知道是否有解决方法。
示例:
fig, (ax1, ax2) = plt.subplots(ncols=2)
ax1.plot([1,2,3])
ax2.plot([-1,-2,-3])
ax1.set(title="A. line with positive slope")
ax2.set(title="B. line with negative slope")
# want...
ax1.set(title="bold(A.) line with positive slope")
我希望A.和B.在标题中大胆。
Is it possible to have some but not all letters of an axes title in bold? I could not find anything in the documentation, but wondering if there is a workaround.
Example:
fig, (ax1, ax2) = plt.subplots(ncols=2)
ax1.plot([1,2,3])
ax2.plot([-1,-2,-3])
ax1.set(title="A. line with positive slope")
ax2.set(title="B. line with negative slope")
# want...
ax1.set(title="bold(A.) line with positive slope")
I would like A. and B. to be bold in the titles.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试以下尝试:
Try this: