On 08/19/2011 07:43 PM, 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
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 =
Thanks Eric and JJ,
Both of your answers are solutions to my problem actually.
I spent a while trying to figure this out and didn't get anywhere.
This was an exercise in frustration with matplotlib's documentation.
Thankfully this list and its members are here to save us. I assumed it
was just a
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
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