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