Re: [Matplotlib-users] Strange behaviour of scatter with single-column 2D array

2012-03-20 Thread Julien Rebetez
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

[Matplotlib-users] Strange behaviour of scatter with single-column 2D array

2012-03-20 Thread Julien Rebetez
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