471,342 Members | 1,941 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,342 software developers and data experts.

Plotting Images

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.
>>>from scipy import 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
__________________________________________________ __________________________________
想及時通知通訊錄裡的所有親朋好友好消息,就來 Yahoo!奇摩電子信箱發簡訊!
http://tw.mobile.yahoo.com/texts/mail.php
Jul 31 '07 #1
3 3702
On Jul 31, 6:41 am, Pei-Yu CHAO <peiyu_c...@yahoo.com.twwrote:
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.
>>from scipy import 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

__________________________________________________ __________________________________
想及時通知通訊錄裡的所有親朋好友好消息,就來 Yahoo!奇摩電子信箱發簡訊!http://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

Jul 31 '07 #2
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)

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.
>>from scipy import 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
Jul 31 '07 #3
On Jul 31, 8:41 am, Pei-Yu CHAO <peiyu_c...@yahoo.com.twwrote:
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
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.
>>from scipy import 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

__________________________________________________ __________________________________
想及時通知通訊錄裡的所有親朋好友好消息,就來 Yahoo!奇摩電子信箱發簡訊!http://tw.mobile.yahoo.com/texts/mail.php

Jul 31 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by srijit | last post: by
3 posts views Thread by Erik Lechak | last post: by
7 posts views Thread by Rolf Wester | last post: by
3 posts views Thread by Jason | last post: by
reply views Thread by robert | last post: by
1 post views Thread by T. Crane | last post: by
5 posts views Thread by jo5867472 | last post: by
reply views Thread by Helmut Michels | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.