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
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,
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
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