Hi I need to graph the contents of a matrix where each row represents a different feature and each column is a different time point. In other words, I want to see the change in features over time and I have stacked each feature in the form of a matrix. C is the matrix
A=C.tolist() #convert matrix to list.
R=[]
for i in xrange(len(A[0])):
R+=[[i]*len(A[i])]
for j in xrange(len(A[0])):
S=[]
S=C[0:len(C)][j]
pylab.plot(R[j],S,'r*')
pylab.show()
Is this right/is there a more efficient way of doing this? Thanks!