def dovis(self):

        plt.clf()

        phi = self.cc_data.get_var("phi")

        myg = self.cc_data.grid

        plt.imshow(np.transpose(phi[myg.ilo:myg.ihi+1,
                                         myg.jlo:myg.jhi+1]),
                     interpolation="nearest", origin="lower",
                     extent=[myg.xmin, myg.xmax, myg.ymin, myg.ymax])

        plt.xlabel("x")
        plt.ylabel("y")
        plt.title("phi")

        plt.colorbar()

        plt.figtext(0.05,0.0125, "t = %10.5f" % self.cc_data.t)

        plt.draw()
Do runtime visualization.
dataset/ETHPy150Open zingale/pyro2/diffusion/simulation.py/Simulation.dovis