I am having trouble plotting multiple lines from a 2D list. I currently have the below dataset.
x = np.linspace(0, 4, 5)
y = [[0.32,1.25,2.36,3.36,3.52],[0.32,1.25,2.36,3.36,3.52]]
and to plot this I implemented
for i in range(len(y)):
for x in range(len(y[i])):
plt.plot(x[x], y[I][x])
plt.show()
How can I have it so that I have multiple lines in one graph thus plotting it from a 2d array?
