How to insert bold text in a cell of matplotlib table (pyplot table) ?
import matplotlib.pyplot as plt
plt.table(cellText=[['my_texte_bold', 'other cell'], ['cell1', 'cell2'])
You can use tex code in matplotlib texts. In this way you can also mix different font properties
import matplotlib.pyplot as plt
t=plt.table(cellText=[['my_texte_$\\bf{bold}$', 'other cell'], ['cell1', 'cell2']])
t.scale(1,7)
plt.axis('off')
giving you

Note:
You might face the problem that whitespaces are lost in the bold region.
In this case use strBold.replace(' ','\\ '). This puts a '\\' in front of every whitespace.
See also:
https://stackoverflow.com/a/61538854/7128154 for more options based on an plt.text example
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With