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?
I use matplotlib 0.99.1.1 on gentoo linux.
Thanks!
Nathan
···
–
View this message in context: http://old.nabble.com/matplotlib-figure-within-Qt-Application-->-segfault-tp26944171p26944171.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
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
···
On Mon, Dec 28, 2009 at 10:24 AM, TheLonelyStar <nabble2@...2859...> 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?