[SciPy-user] Create n-dim array from axis

Paul Hilscher p.hilscher@lsw.uni-heidelberg...
Mon Mar 23 09:07:37 CDT 2009

> try mx, my = numpy.meshgrid(x, y)
> [zip(a,b) for (a,b) in zip(mx, my)]HTH, 

Thanks a lot David, this works perfectly fine for 2-dimensions.
Is there any possibility to extend it to 3-dimensions with axis z, or
even to 4-dimensions giving axis w ?

Thanks again,


More information about the SciPy-user mailing list