9951 explained code solutions for 126 technologies


python-matplotlibHow to set bold font for title


import matplotlib.pyplot as plt

plt.plot([2,1,3])
plt.title('Example', weight='bold')

plt.show()ctrl + c
import matplotlib.pyplot as plt

loads Matplotlib module to use plotting capabilities

.plot(

plot specified data

title

set chart title

weight

set weight of text (bold in our case)

.show()

render chart in a separate window