imshow scaling

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 scale with
windows size like if you plotted something with specgram() or plot().

Thanks,

Ryan

···

--
View this message in context: http://www.nabble.com/imshow-scaling-tp23024632p23024632.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

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 <ryanmbergmann@...287...> 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 see anything. I would like the image to dynamically scale with
windows size like if you plotted something with specgram() or plot().

Thanks,

Ryan
--
View this message in context: http://www.nabble.com/imshow-scaling-tp23024632p23024632.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

Just pass in aspect='auto' as a keyword argument to imshow.

JDH

···

On Mon, Apr 13, 2009 at 11:20 AM, rmber <ryanmbergmann@...287...> 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 see anything. I would like the image to dynamically scale with
windows size like if you plotted something with specgram() or plot().