From: massimo s. <mas...@un...> - 2005-11-30 12:50:51
|
Hi, I'm in the way of rewriting in Python from scratch an old matlab data analysis program for AFM data. The program should have a quite simple GUI with a graph capable of interactive plotting (i.e. clicking on two points on a 2d graph and fitting the points in between) and a couple of buttons/menus for fit options and graph options. It's a couple of days I'm learning matplotlib/pylab and scipy, and they seem powerful enough to fulfill my needs. Now, my dream would be to embed matplotlib in a full WxPython application, instead of using pylab, but (1)I have read that it requires to rewrite some basic pylab facilities, like taking plot coordinates of the mouse, that I really need and that's very easy to use (2)I still have to learn WxPython, and even if I'd eventually do it, it seems messy to me to learn WxPython and to embed matplotlib in it at the same time (3)I have not so much time...I have to analyze that data, more sooner than later. :( I think I'll eventually do an embedded matplotlib application, but I'd like to think about it as "version 2.0". So, there are two solutions that I'm considering: - Using WxMpl or MPlot. What are pros and cons of both wrappers? - Creating a small, pure WxPython application that calls pylab to manage graph operations. I think it would look somehow like Gimp, with a tall and thin window full of buttons, menus etc. and the graph as a separate pylab window. What's the best alternative and/or your advice and critics about it? Thanks, Massimo -- Massimo Sandal University of Bologna Department of Biochemistry "G.Moruzzi" snail mail: Via Irnerio 48, 40126 Bologna, Italy email: mas...@un... tel: +39-051-2094388 fax: +39-051-2094387 |