matplotlib.pyplot.
interactive
Set interactive mode to boolean b.
If b is True, then draw after every plotting command, e.g., after xlabel