如何用下标粗体制作tick标签?

发布于 2025-02-01 18:42:33 字数 250 浏览 2 评论 0原文

我有以下带有标签的字典,我想在其中绘制K1/2作为下标1/2的k。

labels = {'label': 'Label1', 'Label2', '$K_{1/2}$'}

然后,我想以粗体和大小为22的XTICK绘制Xtick,但是,K1/2并不以螺栓为单位绘制。我该如何解决?

plt.xticks(fontweight = 'bold', fontsize = 22)

I have the following dictionary with labels, where I'd like to plot K1/2 as K with subscript 1/2.

labels = {'label': 'Label1', 'Label2', '$K_{1/2}

I then want to plot the xticks in bold and size 22, however, K1/2 is not plotted in bolt as only label. How can I fix this?

plt.xticks(fontweight = 'bold', fontsize = 22)
}

I then want to plot the xticks in bold and size 22, however, K1/2 is not plotted in bolt as only label. How can I fix this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

最后的乘客 2025-02-08 18:42:33

这对我有用!

 plt.xlabel(r'$\bf{K_{1/2}}
)

This worked for me!

 plt.xlabel(r'$\bf{K_{1/2}}
)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文