how to label a plot in matplotlib code example
Example: python display name plot
plt.plot(x, y, label='First Line')
plt.plot(x2, y2, label='Second Line')
plt.plot(x, y, label='First Line')
plt.plot(x2, y2, label='Second Line')