how to plot 2 graphs in same plot in matplotlib
x1 = [1, 2, 3]
Data for the first line
y1 = [4, 5, 6]
x2 = [1, 3, 5]
Data for the second line
y2 = [6, 5, 4]
plt.plot(x1, y1)
plt.plot(x2, y2)
plt.legend(["Dataset 1", "Dataset 2"])
Create a legend for the graph