how to add title for x and y axis for matplotlib code example Example: add x axis label python plt.xlabel("X axis label")