I have a simple python script which plots some graphs in the same figure. All graphs are created by the draw() and in the end I call the show() function to block.
T
I think that using show(block=True) should fix your problem.
show(block=True)