On Thu, Jan 15, 2009 at 11:56 AM, <projet...@club-internet.fr> wrote:

> Hello,
> I would like to see the following example
> http://matplotlib.sourceforge.net/examples/pylab_examples/ellipse_demo.ht
> ml<http://matplotlib.sourceforge.net/examples/pylab_examples/ellipse_demo.html>using
>  the 2nd one
> http://matplotlib.sourceforge.net/examples/user_interfaces/embedding_in_qt
> 4.html<http://matplotlib.sourceforge.net/examples/user_interfaces/embedding_in_qt4.html>.
> 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.

Darren
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to