This line of code:
plt.suptitle("Observed and Predicted $U_{dec,c}$",x=mid,fontweight='bold')
Produces a suptitle like this:
However, I require the entire string to be in bold, including the mathematical expression, and for various reasons I need to use plt.suptitle, not plt.title. I would be grateful for any advice on how to do this.
CodePudding user response:
There are many options, a simple one is to use \mathbf
:
plt.suptitle(r"Observed and Predicted $\mathbf{U_{dec,c}}$", fontweight='bold')
Here is a list of Latex symbols.
For more questions, you can checkout this.