Phong shading for shiny Python 3D surface plots

后端 未结 2 1539
傲寒
傲寒 2021-02-14 02:33

I\'m trying to create aesthetically pleasing 3D plots in Python with specular shading, and thus far have tried using both Matplotlib with 3D axes and surface plots from Mayavi,

2条回答
  •  无人共我
    2021-02-14 02:57

    Yes, you can do this in Mayavi. In the Mayavi window, click on the little Mayavi icon in the upper left-hand corner to show the advanced menu. Click on the surface in the scene that corresponds to your surface, then click on the "Actor" tab in the menu on the right, scroll down to the box labeled "Property", and click on "More options". You can set the shading to phong shading in the "Interpolation" box.

提交回复
热议问题