If you want aspect="auto", this must also be set when you create ImageGrid. A simple example is attached. If you want a fixed aspect other than 1, it is doable but gets a bit tricky. Let me know if this is what you want.
Regards, -JJ from mpl_toolkits.axes_grid1 import ImageGrid fig = plt.figure(1) grid = ImageGrid(fig, 111, (2, 1), aspect=False, label_mode='L', cbar_mode="single", ) arr = np.arange(100).reshape((10, 10)) im1 = grid[0].imshow(arr, aspect="auto") im2 = grid[1].imshow(arr, aspect="auto") grid[0].cax.colorbar(im1) On Sat, Aug 20, 2011 at 2:43 PM, gru...@bigpond.net.au <gru...@bigpond.net.au> wrote: > Usually imshow(arr, aspect='auto') or imshow(arr, aspect=2.0) will > display the image with pixels having some aspect ratio other than 1:1 > However, I cannot get this to work when using imshow within an AxesGrid axis. > Is there a way to get an array shown with imshow() within an AxesGrid > axis to have a pixel aspect other than 1:1 ? > If not, is there a simple way to add a shared colorbar when using subplots() ? > > Gary > > ------------------------------------------------------------------------------ > Get a FREE DOWNLOAD! and learn more about uberSVN rich system, > user administration capabilities and model configuration. Take > the hassle out of deploying and managing Subversion and the > tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > ------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users