我有一个轴标题中的下标,我想以粗体作为其余文本的标题。我正在使用此代码:
plt.ylabel(r'pc $ _ {\ rm sd} $(a)',fontsize = 22,fontweaight ='bold'),
但这不会使下标侧面bold(请参阅图) 。有建议吗?谢谢!
我在这里附上我的情节:
请参阅y axis
I have a subscript in one axis title which I want to have it in bold as the rest of the text. I am using this code:
plt.ylabel(r'PC$_{\rm SD}$ (A)', fontsize=22, fontweight='bold')
but this does not make the subscript part bold (see the plot). Any suggestion? Thanks!
I attach my plot here:
see y axis
发布评论
评论(1)
尝试此...
plt.ylabel(r'pc $ _ {\ rm \ bf {sd}}} $(a)',fontsize = 22,fontweight ='bold')
Try this...
plt.ylabel(r'PC$_{\rm \bf{SD}}$ (A)', fontsize=22, fontweight='bold')