Hi FEniCS community,
I am using FEniCS to solve elastic problem.
The unknown/solution is the displacement u_solution, as a Function of VectorFunctionSpace(mesh, “CG”, 1).
For now, I am plotting it in a unique window with vedo.doflin as follow:
vedo.dolfin.plot(u_solution,
mode='displace',
text="displacement",
style='paraview',
camera=dict(pos=(0., 0., 1.)), # view on Z direction
interactive=False).clear()
I would like to plot u_solution, displaying on a same plot the 3 fixed views: X direction, Y direction and Z direction of my object (rather than using an interactive plot).
I tried this, but it does not work:
plt = vedo.dolfin.Plotter(N=3)
viewX = vedo.Plotter(u_solution, mode='displace', camera=dict(pos=(1., 0., 0.)), interactive=False)
viewY = vedo.Plotter(u_solution, mode='displace', camera=dict(pos=(0., 1., 0.)), interactive=False)
viewZ = vedo.Plotter(u_solution, mode='displace', camera=dict(pos=(0., 0., 1.)), interactive=False)
plt.at(0).add(viewX)
plt.at(1).add(viewY)
plt.at(2).add(viewZ)
plt.show()
plt.close()
How can I get that simultaneous multi-windows plot?
Many thanks,
Anne