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