write a bitmap using python

L

lyuan

Hi,
How can I write a bitmap using python? I have some integer data and
want to generate a bitmap graph for visualization. Any suggestion will
be appreciated.
Sorry if this is an FAQ, BTW, where can I find the FAQ of this list?

thanks
Lihua
 
P

Paul McGuire

lyuan said:
Hi,
How can I write a bitmap using python? I have some integer data and
want to generate a bitmap graph for visualization. Any suggestion will
be appreciated.
Sorry if this is an FAQ, BTW, where can I find the FAQ of this list?

thanks
Lihua

I chased this down last fall when I needed to visualize some data much as
you describe.

http://www.geocities.com/ptmcg/python/index.html#bmp

Follow the 'module' link to retrieve the bmp.py source.

-- Paul
 
G

Gary Herron

Hi,
How can I write a bitmap using python? I have some integer data and
want to generate a bitmap graph for visualization. Any suggestion will
be appreciated.
Sorry if this is an FAQ, BTW, where can I find the FAQ of this list?

thanks
Lihua

The Python Image Library (PIL) is probably what you want:

http://www.pythonware.com/products/pil/

Gary Herron
 
D

djw

lyuan said:
Hi,
How can I write a bitmap using python? I have some integer data and
want to generate a bitmap graph for visualization. Any suggestion will
be appreciated.
Sorry if this is an FAQ, BTW, where can I find the FAQ of this list?

thanks
Lihua

If you application involves a UI like Qt/PyQt, then there are ample
classes to perform this operation (QPixmap, QImage, etc). Otherwise,
look at PIL.

-D
 
L

lyuan

Hi, Paul,
Thanks for your help. The code is indeed clear and illustrative.

I wonder under what license is your code distributed? Do you mind if I
include part of your code into my code? I'm not writing anything
commercial, but instead a scientific data analysis program.


thanks
Lihua
 
P

Paul McGuire

lyuan said:
Hi, Paul,
Thanks for your help. The code is indeed clear and illustrative.

I wonder under what license is your code distributed? Do you mind if I
include part of your code into my code? I'm not writing anything
commercial, but instead a scientific data analysis program.


thanks
Lihua
Lihua -

Re-download the .py file - it now includes an MIT open source license
header.

I'm glad it could help.

-- Paul
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top