adding heading to the matplot lib code example Example: matplotlib title import matplotlib.pyplot as plt plt.title('TITLE')