set x axis label matplot lib code example Example: change name of axis matplotlib plt.xlabel('X axis') plt.ylabel('Y axis')