show x, y label in matplotlib code example Example: matplotlib label axis import matplotlib.pyplot as plt plt.ylabel('Y AXIS') plt.xlabel('X AXIS')