Below is the last (or nearly so) message of a thread from last summer.
I have now implemented option 3 in svn, so:
If y is 2-D, plot(y) plots the columns of y against the row-index.
If x is 1-D and y is 2-D, plot(x,y) plots the columns of y against x.
(In this case, x can also be 2-D if it is
Eric -
To be honest, I think the native array storage order matters a lot.
When you have a large dataset, transposing the matrix is not a cheap command.
But I also understand the logic of plotting column against column.
However, a 1D vector in Python is by default a row, while in Matlab it is a
I am following up on the discussion of passing a single 2D array to plot.Wouldn't it make more sense that, in Python array style, if you give it a single N x K argument you plot rows against the first row?
On the same token, it would be really nice if contour, pcolor and imagetake as an x and y
On Wednesday 12 July 2006 16:16, Mark Bakker wrote:
I am following up on the discussion of passing a single 2D array to plot.
Wouldn't it make more sense that, in Python array style,
if you give it a single N x K argument you plot rows against the first row?
That's not the behavior I would
Mark Bakker wrote:
On the same token, it would be really nice if contour, pcolor and image
take as an x and y argument not only a matrix but just a 1D row. This
should be really easy and would be very useful.
contour already does this, and I agree that pcolor and pcolormesh
should.