On Thu, 2008-01-10 at 14:10 +0100, Henry Proudhon wrote: > Hi Matplotlib users, > > I'm experiencing some problems when closing a figure (I'm using > matplotlib 0.91.0). > the function is working correctly when invoked inside the module where > it is defined: > > from pylab import * > > def test(): > t = arange(0.0, 1.0+0.01, 0.01) > s = cos(2*2*pi*t) > plot(t, s, '-', lw=2) > show() > print 'after show' > > if __name__ == '__main__': > print test() > > now if I call test() from another module, the figure closes but show() > does not return ('after show' does not get printed) so the execution is > stuck. > > Can somebody shed some light here, I'm really missing something... > > Thanks a lot > Henry
In case somebody has the same problem, I worked around this by embedding a matplotlib figure in a gtk window but it's a lot heavier. Henry ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users