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