From: Ryan M. <rm...@gm...> - 2010-02-28 03:58:34
|
On Sat, Feb 27, 2010 at 2:23 PM, David Goldsmith <d_l...@ya...> wrote: > Question 2) is there some way I can add pieces of the array incrementally to > the image into their proper place, i.e., modify the following code: > > ax.imshow(image[0:ny/2+1, 0:nx/2+1]) # upper left corner of image > ax.hold(True) > ax.imshow(argW[ny/2+1:-1, 0:nx/2+1]) # lower left corner of image > ax.imshow(argW[0:ny/2+1, nx/2+1:-1]) # upper right corner of image > ax.imshow(argW[ny/2+1:-1, nx/2+1:-1]) # lower right corner of image Try the extents keyword argument. It let's you specify the corners of the image in data coordinates. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma |