This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Plotting a VectorFunction with X3DOM

+1 vote

I'd like to plot a VectorFunction element on a 3d surface mesh with HTML(X3DOM().html()) inlined in a Jupyter notebook, but I can't figure out how to do this.

A naive call does show the mesh color coded, visualizing some scalar quantity which is probably the magnitude (?) of the vector field. I'd rather expect a glyph visualization as was previously (Fenics <= 1.6) the case with the VTK plotter, using the simple plot function.
My mesh is a surface mesh embedded in $R^3$, i.e. of topological dimension 2 and geometric dimension 3 if this matters.

I'm using the Fenics 2016.2 conda packages which apparently don't come with the vtk plotting backend anymore (?), and the latest Anaconda 4.3.0 on 64bit Linux.

asked Feb 22, 2017 by konstantin FEniCS Novice (900 points)
...