also, there is some discussion of a toggle feature for user interaction here:
http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.show in particular, a keyword argument "block" can be set to true or false, but i did not see any sample code ... good luck.
