9951 explained code solutions for 126 technologies


python-matplotlibHow to set italic font for title


import matplotlib.pyplot as plt

plt.plot([2,1,3])
plt.title('Example', style='italic')

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

loads Matplotlib module to use plotting capabilities

.plot(

plot specified data

title

set chart title

style='italic'

change font style to italic

.show()

render chart in a separate window