- changed status to invalid
Problem with plotting meshes imported from file
Hi,
I am having some issues when plotting meshes that are imported from file. In some situations, the plotter is unable to display the mesh properly. An example where problems occur is the following:
from dolfin import *
mesh = Mesh("box_mesh.xml")
plot(mesh, interactive=True)
newmesh = Mesh("unit_cube_mesh.xml")
plot(newmesh, interactive=True)
Here, the first mesh ("box_mesh.xml") is plotted normally, while the second mesh ("unit_cube_mesh.xml") looks very bad (see bad_plot.png).
Switching the order of the files gives the same result, the first mesh to be created ("unit_cube_mesh.xml") will then be plotted correctly and the second mesh ("box_mesh.xml") will not be. Saving the second (bad-looking) mesh to a new file, importing it later and plotting it does not help, the plot still looks bad.
I have only encountered this problem with meshes imported from file, so for example
from dolfin import *
mesh = UnitCubeMesh(8,8,8)
plot(mesh, interactive=True)
newmesh = BoxMesh(0,0,0,2,1,1,8,8,8)
plot(newmesh, interactive=True)
does not cause problems.
Comments (3)
-
-
Issue
#217was marked as a duplicate of this issue. -
I had a same bug, so it is not invalid. And a stable version still has not fix.
- Log in to comment
Downloading your files and running the code locally with present development version works without problem for me.