add x axis labels and y axis label in matplotlib code example Example: add x axis label python plt.xlabel("X axis label")