In matplotlib
you can make the text of an axis label bold by
plt.xlabel('foo',fontweight='bold')
You can also use LaTeX with the right backend
plt.xlabel(r'$phi$')
When you combine them however, the math text is not bold anymore
plt.xlabel(r'$phi$',fontweight='bold')
Nor do the following LaTeX commands seem to have any effect
plt.xlabel(r'$f phi$')
plt.xlabel(r'$mathbf{phi}$')
How can I make a bold $phi$
in my axis label?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…