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