SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: TheLonelyStar <na...@lo...> - 2009年12月28日 15:24:43
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--%3E-segfault-tp26944171p26944171.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Darren D. <dsd...@gm...> - 2009年12月29日 21:26:55
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
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /