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