From: Stefan van der Walt <stefan@su...> - 2006-10-16 06:14:31
On Sun, Oct 15, 2006 at 09:31:32PM -0200, Flavio Coelho wrote:
> I am having a strange behavior with the size of axes in imshow. the att=
> code worked fine with an older version of Pylab, but with the latest SV=
> plots are appearing very narrow (vertically)in the middle of the window=
> of resizing to take up the whole frame.
> can anyone please illuminate me as to why this is happening?
The size of the image being plotted is (72, 2048), so that behaviour
sounds correct. The plot I see is shown here:
From: John Hunter <jdhunter@ac...> - 2006-10-16 13:57:22
>>>>> "Stefan" == Stefan van der Walt <stefan@...> writes:
Stefan> The size of the image being plotted is (72, 2048), so that
Stefan> behaviour sounds correct. The plot I see is shown here:
As Stefan notes, this is a feature not a bug, but it is relatively new
behavior since Mark Bakker and Eric Firing finally provided us with
good aspect handling. The new default is to maintain aspect ratio of
images, but if you want the old behavior, you can pass in
aspect='auto' into your image or set the image.aspect parameter in
your rc file.