Plotting Images

P

Pei-Yu CHAO

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)

I have tried to use matplotlib function imshow(), but
all i get is a long thin line (unable to see the color
display and the my matrix information).

i think imshow() has the same problem in matlab, but i
think there is a alternative in matlab, imagesc().

I did search on web about plt.imagesc().....but when i
try to run the example code, python just tell me
cannot find module plt.
ImportError: cannot import name plt

I have installed scipy, wxpython2.6....and it still
seem not to work!

is there some alternitive? or what have i done wrong?
Thank you

Pei


____________________________________________________________________________________
·Q¤Î®É³qª¾³q°T¿ý¸Ìªº©Ò¦³¿ËªB¦n¤Í¦n®ø®§¡A´N¨Ó Yahoo!©_¼¯¹q¤l«H½cµo²°T¡I
http://tw.mobile.yahoo.com/texts/mail.php
 
K

kyosohma

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)

I have tried to use matplotlib function imshow(), but
all i get is a long thin line (unable to see the color
display and the my matrix information).

i think imshow() has the same problem in matlab, but i
think there is a alternative in matlab, imagesc().

I did search on web about plt.imagesc().....but when i
try to run the example code, python just tell me
cannot find module plt.


ImportError: cannot import name plt

I have installed scipy, wxpython2.6....and it still
seem not to work!

is there some alternitive? or what have i done wrong?
Thank you

Pei

____________________________________________________________________________________
·Q¤Î®É³qª¾³q°T¿ý¸Ìªº©Ò¦³¿ËªB¦n¤Í¦n®ø®§¡A´N¨Ó Yahoo!©_¼¯¹q¤l«H½cµo²°T¡Ihttp://tw.mobile.yahoo.com/texts/mail.php

The wxPython mailing list would be the better place for this set of
questions. I see them talking about this topic quite a bit. Here's a
link to their list: http://www.wxpython.org/maillist.php

Mike
 
S

Stef Mientki

Pei-Yu CHAO said:
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)

I have tried to use matplotlib function imshow(), but
all i get is a long thin line (unable to see the color
display and the my matrix information).

i think imshow() has the same problem in matlab, but i
think there is a alternative in matlab, imagesc().

I did search on web about plt.imagesc().....but when i
try to run the example code, python just tell me
cannot find module plt.

ImportError: cannot import name plt

I have installed scipy, wxpython2.6....and it still
seem not to work!

is there some alternitive? or what have i done wrong?
Thank you

Pei

you might try wxPyPlot,
this seems to be a very light weight and yet powerfull graph unit.

cheers,
Stef Mientki
 
A

Andr

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)

I have tried to use matplotlib function imshow(), but
all i get is a long thin line (unable to see the color
display and the my matrix information).
What is the screen size of your image? If it's scaled down so that
the largest dimension is 1000px, then the smaller dimension will be
reduced to 1px.

Try breaking your image into various "strips".

HTH,
Andr
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,586
Members
45,084
Latest member
HansGeorgi

Latest Threads

Top