don't understand interactive mode

I am trying to update a figure in a loop:

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

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)

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


View this message in context:
Sent from the matplotlib - users mailing list archive at