From: Ken M. <mc...@ii...> - 2005-11-30 21:26:11
|
On 11/30/05 12:29, massimo sandal wrote: > About the OO MPL interface, it seems to be a bit lacking in > documentation. Is there some hint you can give me? The EmbeddingInWx cookbook entry includes some good starting points: http://www.scipy.org/wikis/topical_software/EmbeddingInWx#ooapi It links to a bunch of matplotlib examples translated to the OO API: http://www.scipy.org/wikis/topical_software/oo-demos.py > What important goodies pylab has that the OO interface has not? I'm > expecially concerned about the rectangular zoom and mapping the mouse > position on the plot, I have quite a need for them. The most important difference is that pylab gives you user interaction features (like zooming and displaying the position) but the OO interface does not. An embedding library will give you those features, plus ones which pylab does not (e.g. printing support, selecting points and regions). > Hope someone will give us suggestions about these libraries. It's kind of an apples to oranges comparison, because WxMpl and MPlot attempt to solve different problems. MPlot gives you a very high-level interface for creating X/Y plots. WxMpl gives you smarter FigureCanvasWxAgg which can plot anything using matplotlib's OO API. Since your first email mentioned wanting to pick regions of a plot to fit over, I'd suggest trying out WxMpl. I just released a new version which fixes the point and region picking and includes a demo of it. Ken |