Skip to main content
3 of 6
edited tags
Alexey Popkov
  • 62.3k
  • 7
  • 154
  • 375

3DPlot Rendering Artefacts (z-fighting)

I am trying to render a matrix as a depth map:

data = {{1, 1, 1, 1}, {1, 0, 3, 1}, {2, 0, 0, 1}};
ListPlot3D[data, Mesh -> None, InterpolationOrder -> 0, 
           Filling -> Bottom, FillingStyle -> {Opacity[1]}, 
           ColorFunction -> "SolarColors", ViewPoint -> {Pi, Pi, 5}]

enter image description here

However, for the matrix element with the lowest value, the height of the respective bar in the plot is zero. The result are rendering artefacts (z-fighting).

Viewing the graph from below or rotating the graph makes the problem more obvious:

enter image description here

R D
  • 283
  • 1
  • 4