From: Robert K. <rob...@gm...> - 2006-06-01 20:13:44
|
Charlie Moad wrote: > Here's my crack at it. > > pts = mgrid[minx:maxx,miny:maxy].transpose() > pts.reshape(pts.size/2, 2) > #pts is good to go Well, if we're going for terseness: points = mgrid[minx:maxx, miny:maxy].reshape(2, -1).transpose() -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco |