I am trying to have a plot pop up so the user can confirm that a fitting worked, but not hang up the entire process doing so. However, while the window appears, there is nev
Instead of the mpl.draw(), try:
mpl.pause(0.001)
when using the matplotlib interactive mode ion(). Note that this only works from matplotlib 1.1.1 RC or higher.