On Mon, Dec 28, 2009 at 10:24 AM, TheLonelyStar <na...@lo...> 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