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_de
mo.html>using the 2nd one
http://matplotlib.sourceforge.net/examples/user_interfaces/embedding_in_
qt
4.html<http://matplotlib.sourceforge.net/examples/user_interfaces/embed
ding_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
Thanks a lot.
Now I would like to redraw the static graph of the first example. This would
be my last question.
Regards.
Christophe.
PS : if you want I can give the final example to add it to your examples.