don't understand interactive mode

I am trying to update a figure in a loop:

    import matplotlib.pyplot as plt
    plt.ion()
    plt.figure (1)
    def c2r (z):
        return z.real, z.imag
    
    plt.hexbin (*c2r (run_ofdm (xconst_pred)[:opt.used]), mincnt=1)
    plt.draw()

But no figure appears on the screen. What am I doing wrong?

This is using using Qt4Agg (I think, that's what's in my matplotlibrc)

Hi
I don't have a satisfactory answer, but have found I needed two draw()
commands to get screen output. I dont understand why.
Cheers
        Rhodes

···

--
View this message in context: http://matplotlib.1069221.n5.nabble.com/don-t-understand-interactive-mode-tp42686p42691.html
Sent from the matplotlib - users mailing list archive at Nabble.com.