The script loops through a set of commands 1000 times. In every iteration, a sparse matrix with some non-zero values are generated.
What I want to do is:
For one iteration, plot all the non-zero elements of the matrix with specific colours(Y-axis) along a vertical line(=iteration number,X-axis). Repeat the same for every iteration. This way I get to see how one particular element of the matrix is varying through every iteration.
This is what I did:
Problem: Since I am plotting one element at a time, the colours are random and cannot show how a specific element (say (1,3) of Matrix) varies through the iterations.