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 shade some light here, I'm really missing something...

Thanks a lot
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

Reply via email to