473,320 Members | 1,861 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 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
__________________________________________________ __________________________________
·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
Jul 31 '07 #1
3 3814
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

__________________________________________________ __________________________________
·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

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

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

Jul 31 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: srijit | last post by:
Hi, I am looking for a good plotting package (preferably with 3D plotting capabilities) based on Python 2.3 (Windows 98). Unfortunately Dislin does not exist for Python 2.3. I look forward to...
3
by: Erik Lechak | last post by:
Hello All, I am creating a visual programming environment for python (similar to Matlab's simulink, but for python). For several reasons I have decided not to go with OGL. I am writing a wxOGL...
7
by: Rolf Wester | last post by:
Hi, I have a Python console application that is intended to be used interactively and I have to add plotting capabilities (multiple XY plots and if possible 2D-surface plots). I'm loocking for a...
3
by: Jason | last post by:
If I'm wanting to plot points to the screen (nothing fancy at all for the moment), would you recommend PyGame, PyOpenGL or PIL? Like I said, it's nothing complicated, no flashing wotsits or 3d...
12
by: Russ | last post by:
I'm interested in setting up a web page where live data can be displayed in real-time on the web page. For example: I would like to display a (nice looking) graph of some data value versus time...
0
by: robert | last post by:
What is a good library for plotting graphs to (compressed) gif / jpg images? Has anybody experience with this? I want to put some simple 2D (and maybe 3D) graph data visualization on a web...
1
by: T. Crane | last post by:
Hi, I am looking for a good plotting library. I intend to do 3D surface plots, 2D contour, 3D waterfall, etc. Right now I have access to National Instruments' Measurement Studio, and it's...
5
by: jo5867472 | last post by:
hi to all I am just a beginner of python. I want to know how pixels are plotted in python. I am not intending to use PIL because I don't need to manipulate images. So is there a simple module for...
0
by: Helmut Michels | last post by:
Dear C/C++ programmers, I am pleased to announce version 9.4 of the data plotting software DISLIN. DISLIN is a high-level and easy to use plotting library for displaying data as curves, bar...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.