← Back to team overview

dolfin team mailing list archive

Re: Plotting MeshFunction

 

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.

Ola

> Garth
>
>
>> Ola
>>  
>>> Garth
>>> _______________________________________________
>>> DOLFIN-dev mailing list
>>> DOLFIN-dev@xxxxxxxxxx
>>> http://www.fenics.org/mailman/listinfo/dolfin-dev
>


Follow ups

References