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

Paul Hilscher p.hilscher at lsw.uni-heidelberg.de
Mon Mar 23 10:07:37 EDT 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,

Paul




More information about the SciPy-User mailing list