From: Chris B. <Chr...@no...> - 2005-11-30 17:50:55
|
massimo sandal wrote: > Now, my dream would be to embed matplotlib in a full WxPython > application, instead of using pylab That is probably a good way to go. > but (1)I have read that it requires to rewrite some basic pylab facilities As any of us write them, we need to contribute them back to MPL, so that one day, everything will be in the OO interface. there will always be a couple extra things, like managing where to put your MPL window, but you'd want to control that anyway in an embedded app. > It seems messy > to me to learn WxPython and to embed matplotlib in it at the same time You are right that that is a bit of a project. > So, there are two solutions that I'm considering: > - Using WxMpl or MPlot. I would say to use one of these for sure. > What are pros and cons of both wrappers? I'd love to see this too. It would be great if we could standardize on one, full featured, wxMPL solution. > - Creating a small, pure WxPython application that calls pylab to manage > graph operations. The issue is that pylab expects to manage it's own Frame. You can't have two wxPython applications in one process, so they will collide, unless you are talking about running a pylab instance in a separate process. That would require some kind of inter-process communication, which would be more work than figuring out how to embed MPL in wx. -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chr...@no... |