Thank you for your answer.
I've read the numpy tutorial and I get it that array and matrices
behave differently.
Now, what I find kind of strange is that the plot I get when directly
feeding the matrices to scatter
doesn't really seem to represent anything.
I think that, if possible, showing an e
atrix. In the case of
an array, a 1D array is returned, in the case of a matrix, a 2D Nx1
matrix is returned. Using this matrix seems to confuse matplotlib.
Using np.ravel or np.flatten on the slices fix that problem.
Is there an explanation for this behaviour or should I fill a bug ?
Best re