views:

258

answers:

1

Hello. I want to programm an easy visualisation of wave propagation. I tried this with visual python (VPython) but the programm is very slow. I want to use a 2-D visualisation now. Which module could you recommend? Tkinter? Matplotlib?

For the computation i use numpy/scipy because it is fast. Thanks in advance.

EDIT: Do you think matplotlib is a good choice? It looks very strong.

EDIT: I really get stuck. Please help me!

+1  A: 

Try this library:
http://linux.wareseeker.com/Programming/summon-1.8.8.zip/2911b4d847

Python Imaging Library is supposed to be good for 2D graphics:
http://www.pythonware.com/products/pil/

Other Useful Links:
Boost.Python http://www.boost.org/libs/python/doc/
PyOpenGL http://pyopengl.sourceforge.net/

These link's have some good information on them.

I'm not familar with matplotlib but it's got some good review's:

http://sourceforge.net/projects/matplotlib/reviews/

chrissygormley
I cant install summon on Python 2.6. vsvarsall.bat is missing (?)
kame
I didn't find a refresh function for pictures in the PIL-module.
kame
I don't know why I'm getting down voted.
chrissygormley
Sorry but I think PIL doesn't refreshes the pictures. I wrote above that I want to show wave propagation and not a standing wave. I try to find a solution for many hours now. But nothing works.
kame
@kame - That indicates that it is trying to run Visual Studio to compile some C code. See if your can get a prebuilt version, install Visual Studio (There's a free version) or see if you can find the options to compile with the MINGW compiler. Try Stackoverflow for questions like this!
Oddthinking