-1

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

Hamed
  • 1
  • 1

1 Answers1

0

Try this...

plt.ylabel(r'PC$_{\rm \bf{SD}}$ (A)', fontsize=22, fontweight='bold')

enter image description here

Redox
  • 9,321
  • 5
  • 9
  • 26