update graph without blocking

Running from command line (not ipython), is there some way to add a plot and
update display without blocking? I have an algorithm that should iteratively
converge. I'd like to draw the result (a plot) after N iterations, continue
computing, then draw after 2N, etc. Retaining the previous plots.

Also, what if I wanted to erase previous plots?