On Mon, Dec 28, 2009 at 10:24 AM, TheLonelyStar <nabb...@lonely-star.org> wrote:
>
> Hi,
>
> I have a Qt application, where I want to display a matplotlib figure which
> is updated from time to time (not mebeded, in its own window).
>
> Now, I do:
> import pylab
>
> pylab.ion()
> pylab.figure()
>
> within a function of the Qt application. And then I get a segfault.
>
> What is the proper way to do this?

You don't want to use the pylab interface to integrate a figure into a
qt application. Instead, see the example at
http://matplotlib.sourceforge.net/examples/user_interfaces/embedding_in_qt4.html
, it will show you how to create a plot in a separate window and
update it periodically.

Darren

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to