Plotting Images

Fernando Perez fperez.net at gmail.com
Tue Jul 31 15:23:30 EDT 2007


Pei-Yu CHAO wrote:

> Hi ALL:
> 
> I have only been switched from matlab to python few
> months ago. I having trouble of plotting images from a
> matrix size of 8x10000 (unfortunately that is the size
> of my data.....)
> 
> for example,
> x = rand(8,10000)
> inshow(x)
> 

Read the docstrings, they explain how to use the function:

imshow(x,aspect=300)

gives a reasonable size to look at such a thin matrix, after you widen the
window a fair bit.

Cheers,

f




More information about the Python-list mailing list