I have this script and I am not able to write + and ) bold with this font settings. How to do that? Thank you
import matplotlib.pyplot as plt
from matplotlib.text import Text
plt.rcParams['text.latex.preamble']=[r"\usepackage{bm}"]
params = {'text.usetex' : True,
'font.size' : 28,
'font.family' : 'lmodern',
'text.latex.unicode': True,
}
plt.rcParams.update(params)
fig = plt.figure(figsize=(5,5))
def setBold(txt): return r"$\bf{" + str(txt) + "}$"
plt.title(setBold("Positives") + '\n' + setBold('+'), color='red', pad = 10)
text = fig.add_artist(Text(0.5, 0.5, text=setBold('b)'), color='red'))
plt.show()