使用
matplotlib不会阻塞的呼叫:
使用
draw():
from matplotlib.pyplot import plot, draw, showplot([1,2,3])draw()print 'continue computation'# at the end call show to ensure window won't close.show()
使用交互模式:
from matplotlib.pyplot import plot, ion, showion() # enables interactive modeplot([1,2,3]) # result shows immediatelly (implicit draw())print 'continue computation'# at the end call show to ensure window won't close.show()



