Re: [Matplotlib-users] passing 1D or 2D arrays to contour, pcolor, image, plot

2006-12-09 Thread Eric Firing
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

Re: [Matplotlib-users] passing 1D or 2D arrays to contour, pcolor, image, plot

2006-07-13 Thread Mark Bakker
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

Re: [Matplotlib-users] passing 1D or 2D arrays to contour, pcolor, image, plot

2006-07-12 Thread Mark Bakker
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

Re: [Matplotlib-users] passing 1D or 2D arrays to contour, pcolor, image, plot

2006-07-12 Thread Darren Dale
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

Re: [Matplotlib-users] passing 1D or 2D arrays to contour, pcolor, image, plot

2006-07-12 Thread Eric Firing
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.