← Back to team overview

dolfin team mailing list archive

Re: [Question #144722]: plot solution in different time steps

 

Question #144722 on DOLFIN changed:
https://answers.launchpad.net/dolfin/+question/144722

Joachim Haga posted a new comment:
In this case, something like the following should work (maybe there are
better ways):

    if t == 0:
        u_plot = plot(u, wireframe=False,title="velocity", rescale=False, axes=True)
        p_plot = plot(p, wireframe=False,title="pressure", rescale=False, axes=True)
    else:
        u_plot.update(u)
        p_plot.update(p)

-- 
You received this question notification because you are a member of
DOLFIN Team, which is an answer contact for DOLFIN.