def METHOD_NAME(p):
    xarray = numpy.array([x.x for x in pos.internalValues()])
    rhoarray = numpy.array([x for x in rho.internalValues()])
    d = Gnuplot.Data(xarray, rhoarray, with_="linesp", title="iteration %i" % iter, inline=True)
    p.replot(d)