On Mon, Apr 13, 2009 at 11:20 AM, rmber 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 plot and
> its hard to
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 wrote:
>
> Is there a way to make imshow scale images to dimensions other than that of
> the arrya pas
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 scal
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
fig.
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:
|-| || |---|
| | ||