← Back to team overview

dolfin team mailing list archive

Re: Plotting MeshFunction

 

Anders Logg skrev den 31/03-2008 følgende:
> On Mon, Mar 31, 2008 at 11:14:54AM +0100, Garth N. Wells wrote:
> > 
> > 
> > Ola Skavhaug wrote:
> > > Garth N. Wells skrev den 29/03-2008 følgende:
> > >>
> > >> Ola Skavhaug wrote:
> > >>> Garth N. Wells skrev den 28/03-2008 følgende:
> > >>>> When plotting a MeshFunction, the plot window opens and then closes  
> > >>>> again quickly. Seems to be OK for a regular Function.
> > >>> OK, that's a simple fix. Will do.
> > >>>
> > >> Things appear to be fixed for cpp demos, but not for the python demos.  
> > >> Plots disappear quickly.
> > > 
> > > OK, we have made the plot(u) non-interactive. This makes the plotting less
> > > verbose when done in a loop, a-la:
> > > 
> > > for i in xrange(N):
> > >     u = compute_somthing()
> > >     plot(u)
> > > 
> > > In the demos, the call interactive() should be placed at the end.
> > >
> > 
> > This works. although there is no 'press q to continue' message.
> > 
> > Garth
> 
> Should this be added to Viper? Something like:
> 
>   "Plot active, press 'q' to continue"

Done.

Ola
 
> -- 
> Anders


References