def plot(self): """Plot from memory.""" if len(self.frames) == 0: # No frames to plot print "No frames to plot. Did you forget to run, or to set keep_copy=True?" return from clawpack.visclaw import iplot if self.plotdata is None: self.set_plotdata() ip = iplot.Iplot(self.load_frame, self.plot_frame) ip.plotloop()
def plot_results(): from clawpack.visclaw import iplot ip = iplot.Iplot(load_frame, plot_frame) ip.plotloop()