From the matplotlib docs:
matplotlib.pyplot.draw()
Redraw the current figure.
This is used in interactive mode to update a figure that has been altered, but not automatically re-drawn.
A more object-oriented alternative, given any Figure instance,
fig, that was created using a pyplot function, is:
fig.canvas.draw_idle()