I would like to see the following example http://matplotlib.sourceforge.net/examples/pylab_examples/ellipse_demo.ht
ml using the 2nd one http://matplotlib.sourceforge.net/examples/user_interfaces/embedding_in_qt
In fact, I don't undrestand how to add the figure to the screen (I'm a real
beginner with matplotlib but not with PyQt).
Thanks for any kind of help.
On Thu, Jan 15, 2009 at 11:56 AM, <projetmbc@...> wrote:
> I would like to see the following example
> ml<http://matplotlib.sourceforge.net/examples/pylab_examples/ellipse_demo.html>using the 2nd one
> In fact, I don't undrestand how to add the figure to the screen (I'm a real
> beginner with matplotlib but not with PyQt).
> Thanks for any kind of help.
Everything you need is in those two examples. You create a figure, then
create a canvas by passing the figure to the FigureCanvasQTAgg()
constructor. Create the axes using the figure methods, add the ellipses
using the axes methods, and then you can either set the FigureCanvasQTAgg
instance as the central widget or you can add the canvas to the layout of
another widget and set the widget as the central widget.