Plotting higher order vectors with DOLFIN#

import dolfin
from dolfin_pyvista_adapter import plot
mesh = dolfin.UnitCubeMesh(2, 2, 2)
Vv = dolfin.VectorFunctionSpace(mesh, "Lagrange", 3)
v = dolfin.Function(Vv)
v.interpolate(dolfin.Expression(("x[0]", "x[1]", "pow(x[2], 3)"), degree=1))
plot(v, show_edges=True, glyph_factor=0.1, off_screen=False)
Calling FFC just-in-time (JIT) compiler, this may take some time.
/usr/lib/python3/dist-packages/scipy/__init__.py:146: UserWarning: A NumPy version >=1.17.3 and <1.25.0 is required for this version of SciPy (detected version 1.25.2
  warnings.warn(f"A NumPy version >={np_minversion} and <{np_maxversion}"
Calling FFC just-in-time (JIT) compiler, this may take some time.
Calling FFC just-in-time (JIT) compiler, this may take some time.
Calling FFC just-in-time (JIT) compiler, this may take some time.
None
../_images/4e0832ff087ff30e4ef1f92a2d6485bca6b84f5e889e0d2a8c23574a3509188b.png