← Back to team overview

dolfin team mailing list archive

Plotting in DOLFIN

 

There is a demo in src/demo/scripting/pydolfin/ named plotting.py that
demonstrates simple plotting of functions and meshes from within
PyDOLFIN.

The plotting depends on Viper which is available from

    http://www.fenics.org/dev/viper

Here's a simple manual:

# Plot scalar function
plot(u)

# Plot vector-valued function
plot(u)

# Plot mesh
plot(mesh)

# Plot mesh displaced by a function
plot(mesh, u)

/Anders


Follow ups