Re: [Numpy-discussion] How do I use numpy to do this?

2006-06-01 Thread Charlie Moad
Here's my crack at it. pts = mgrid[minx:maxx,miny:maxy].transpose() pts.reshape(pts.size/2, 2) #pts is good to go On 6/1/06, Christopher Barker <[EMAIL PROTECTED]> wrote: I'm trying to get the (x,y) coords for all the points in a grid, bound by xmin, xmax, ymin, ymax. This list comprehension

Re: [Numpy-discussion] How do I use numpy to do this?

2006-06-01 Thread Charlie Moad
That reshape should be "resize". Sorry. > Here's my crack at it. > > pts = mgrid[minx:maxx,miny:maxy].transpose() > pts.reshape(pts.size/2, 2) > #pts is good to go > > On 6/1/06, Christopher Barker <[EMAIL PROTECTED]> wrote: > > > > I'm trying to get the (x,y) coords for all the points in a grid,

Re: [Numpy-discussion] numpy and matplotlib

2006-08-08 Thread Charlie Moad
We're waiting on some possible changes in the numpy c-api before scipy. Hopefully we will have a working release in the next week. On 8/8/06, Bill Baxter <[EMAIL PROTECTED]> wrote: > Matplotlib needs to be recompiled against the latest Numpy. > They should release a new version compatible with Nu

Re: [Numpy-discussion] [matplotlib-devel] Fwd: Going to cut NumPy 1.0b5 tonight

2006-09-05 Thread Charlie Moad
I also get a compile error when trying to build against the win32-py2.4 release. src\_na_nxutils.c(213) : error C2275: 'PyObject' : illegal use of this type as an expression c:\Python24\include\object.h(104) : see declaration of 'PyObject' src\_na_nxutils.c(213) : error C2065: 'ret' : undeclared i