Hello everyone !
I’m trying to animate a heatmap for data visualization.
(Just to clarify, I am a beginner in coding)
The heatmap is generated from a matrix where cells situated at the center of the map take a +1 value at each iteration. I don’t use numpy for the matrix but comprehension...
I have for example this matrix:
1 0 -1 4
0 1 4 0
3 3 2 1
0 0 1 -1
by this code:
for i in range(n):
for j in range(n):
Now, how to return position of Non-zero elements of adjacency_matrix in...