Well, I cannot tell you how to do that in a precise way, but googling a bit I found this (expecially the second example):
http://eli.thegreenplace.net/2008/08/01/matplotlib-with-wxpython-guis/ Take a look also at the Matplotlib cookbook: http://www.scipy.org/Cookbook/Matplotlib ps. when you answer back, remember to include the list, or the flow will be cut! On Tue, May 11, 2010 at 7:49 PM, Sandy Sandy <c...@live.com> wrote: > great!!! > how to do it? > > this way it is not working: > > from pylab import plot,show,close > x = range(10) > plot(x) > from threading import Timer > t = Timer(0, show) > t.start() > > y = [2, 8, 3, 9, 4] > plot(y) > close() > > Best Regards > Sandy > > > > > > > > > > > > > >> From: landima...@gmail.com >> Date: Tue, 11 May 2010 19:46:27 +0200 >> Subject: Re: plot debugging problem >> To: c...@live.com >> CC: python-list@python.org >> >> I imagine you have to create a separate thread for it. Just thoughts. >> >> On Tue, May 11, 2010 at 6:08 PM, Sandy Sandy <c...@live.com> wrote: >> > Hi friends >> > pls help with debugging problem >> > the mutter is: >> > during debugging the debug processes stacks when fig is created >> > for example, in code >> > >> > import random >> > >> > import matplotlib.pyplot as plt >> > from pylab import * >> > >> > >> > x= 23; >> > y = 111111; >> > print(23456) >> > plt.plot(range(10)) >> > >> > plot([1,2,3]) >> > show() >> > >> > print(11111111) >> > >> > a=888 >> > >> > it is impossible after show() to continue debug >> > as stated in >> > Beginning Python Visualization - Crafting Visual Transformation Scripts >> > (2009) >> > page 187 >> > >> > Note If you’re not using matplotlib interactively in Python, be sure >> > to call the function show() after all >> > graphs have been generated, as it enters a user interface main loop >> > that will stop execution of the rest of >> > your code. The reason behind this behavior is that matplotlib is >> > designed to be embedded in a GUI as well. >> > In Windows, if you’re working from interactive Python, you need only >> > issue show() once; close the figures >> > (or figures) to return to the shell. Subsequent plots will be drawn >> > automatically without issuing show(), and >> > you’ll be able to plot graphs interactively. >> > >> > Best Regards >> > Sandy >> > ________________________________ >> > Hotmail: Free, trusted and rich email service. Get it now. >> > -- >> > http://mail.python.org/mailman/listinfo/python-list >> > >> > >> >> >> >> -- >> Matteo Landi >> http://www.matteolandi.net/ > > ________________________________ > Hotmail: Powerful Free email with security by Microsoft. Get it now. -- Matteo Landi http://www.matteolandi.net/ -- http://mail.python.org/mailman/listinfo/python-list