get labels on x axis matplotlib code example Example: matplotlib label axis import matplotlib.pyplot as plt plt.ylabel('Y AXIS') plt.xlabel('X AXIS')