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