plt plot python with legend title xlabel 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')