[Matplotlib-users] imshow scaling

2009-04-13 Thread rmber
Is there a way to make imshow scale images to dimensions other than that of the arrya passed to it? I'm trying to plot a long matrix (like 23x5000) and imshow doesn't work very well since it makes a very vertically thin plot and its hard to see anything. I would like the image to dynamically

Re: [Matplotlib-users] imshow scaling

2009-04-13 Thread Jae-Joon Lee
Explicitly set the aspect to auto. imshow(image, aspect=auto) http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.imshow -JJ On Mon, Apr 13, 2009 at 12:20 PM, rmber ryanmbergm...@gmail.com wrote: Is there a way to make imshow scale images to dimensions other than that

Re: [Matplotlib-users] imshow scaling

2009-04-13 Thread John Hunter
On Mon, Apr 13, 2009 at 11:20 AM, rmber ryanmbergm...@gmail.com wrote: Is there a way to make imshow scale images to dimensions other than that of the arrya passed to it? I'm trying to plot a long matrix (like 23x5000) and imshow doesn't work very well since it makes a very vertically thin

[Matplotlib-users] imshow scaling

2009-02-17 Thread Eric Jonas
I searched for a considerable amount of time this weekend, but have yet to figure out how to do the following: I want to plot several M_i x N images side-by-side on a figure. In particular, something like follows: |-| || |---| | | ||

Re: [Matplotlib-users] imshow scaling

2009-02-17 Thread Jae-Joon Lee
When you say own axes, I presume you're using subplots. You need to create your axes with different sizes (subplot creates axes with same size), so that the height of images are equal when they shrink to to fit in the axes box. You may create an axes with a given size with following command