[NumPy-Tickets] [NumPy] #1567: meshgrid reverses dimensions of output?
NumPy Trac
numpy-tickets@scipy....
Thu Jul 29 13:23:17 CDT 2010
#1567: meshgrid reverses dimensions of output?
----------------------------+-----------------------------------------------
Reporter: auser2 | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: 2.0.0
Component: numpy.numarray | Version:
Keywords: meshgrid |
----------------------------+-----------------------------------------------
In the following code, wouldn't it make more sense if
shape(Xmesh)==(NX,NY)
rather than the current way around? The order of the arguements to
meshgrid is (X,Y), so why shouldn't that be the order of the output's
scripting?
Code below:
from numpy import meshgrid,arange,shape;
NX=5;
NY=10;
X=arange(NX);
Y=arange(NY);
Xmesh, Ymesh = meshgrid(X,Y);
assert(shape(Xmesh) == (NY,NX));
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1567>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list