I have a 4x4 data array like
data = np.array([[0,1,1,1], [1,0,0,1], [1,1,1,0], [0,0,0,1]])
Now I want to scatter this array on a 2D plot.
If data[i,j]
is equal to 1, there should be a colored spot at point (x,y)=(i,j). I've tried with scatter plot in matplotlib, but somehow couldn't make it work.