Can not obtain 3d plot


105
views
0
8 weeks ago by
I use linux mint and followings are installed on my system.
dolfin-version : 2017.2.0
python version:
Python 2.7.12 (default, Dec 4 2017, 14:50:18)
[GCC 5.4.0 20160609] on linux2


When I run first tutorial of fenics below

link

I can not obtain 3d plot. Instead I obtain following

Community: FEniCS Project

2 Answers


4
8 weeks ago by
Miguel  
Use warp mode like this:
plot(u.root_node(), mode='warp', title="Solution on initial mesh")​
This worked. Thank you.
written 8 weeks ago by user1234  
1
8 weeks ago by
Miguel  
The 3d plot you are seeing is from the old VTK plotting backend, now it uses matplotlib instead to remove the dependency on VTK. To see fancy 3D results, open the file poisson.pvd with paraview.
Is it possible to get 3d plot with matplotlib within fenics?
written 8 weeks ago by user1234  
1
Actually yeah, please see my new answer.
written 8 weeks ago by Miguel  
Please login to add an answer/comment or follow this question.

Similar posts:
Search »