def draw_if_interactive():
if matplotlib.is_interactive():<EOL><INDENT>figManager =  Gcf.get_active()<EOL>if figManager is not None:<EOL><INDENT>figManager.canvas.draw()<EOL><DEDENT><DEDENT>
Is called after every pylab drawing command