I have been noticing odd behaviors when plotting polygons and surfaces using mplot3d. Some polygon faces were being slightly transparent, for example when you rotate the sphere in the ‘surface3d_demo2.py’ example. Some faces were completely missing, for example in the ‘hist3d_demo.py’ example. In the surface3d_demo3.py example, I wasn’t fully happy with the appearance of the plot and I was fairly sure it wasn’t 100% correct.
I believe I have the problem tracked down to the “_shade_colors()” method in axes3d.py. I have a patch and it needs to be applied to both the development branch and one for the release candidate. However, I am almost certain that it could break some others 3d display code and I would like people to check it out first before it gets applied.
The ‘mplot3d_vectshade.patch’ can be used against the current development branch, while ‘mplot3d_vectshade_rc2.patch’ can be used against the latest in the maintenance branch.
Thanks, and I would greatly appreciate your input!
mplot3d_vectshade.patch (1.07 KB)
mplot3d_vectshade_rc2.patch (1.12 KB)